home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 January / macpower199701.bin / AMUG / Programming_10 / ICPAppSource+ICprogKit / ICAppSourceKit 1.3.sit / ICAppSourceKit1.3 / ICFileMapWhat.p < prev    next >
MacBinary  |  1996-07-14  |  25.1 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: ICFileMapWhat.p

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert ZX81 Sinclair BASIC (image/sinclairBASIC) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Applause Picture (image/applausePicture) ext Unsupported
1% dexvert bsdiff patch (other/bsdiffPatch) ext Unsupported
1% dexvert imgdiff patch (other/imgdiffPatch) ext Unsupported
1% dexvert MATLAB p-code (other/matlabPCode) ext Unsupported
1% dexvert WSUS Patch Storage File (other/wsusPatchStorageFile) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Sun Jul 14 13:47:59 1996, modified Sun Jul 14 13:47:59 1996, creator 'CWIE', type ASCII, 25037 bytes "ICFileMapWhat.p" , at 0x624d 410 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0f 49 43 46 69 6c 65 | 4d 61 70 57 68 61 74 2e |..ICFile|MapWhat.|
|00000010| 70 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |p.......|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 61 cd 00 | 00 01 9a ae 0e e3 4f ae |.....a..|......O.|
|00000060| 0e e3 4f 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..O.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 9a 9d 00 00 |........|........|
|00000080| 75 6e 69 74 20 49 43 46 | 69 6c 65 4d 61 70 57 68 |unit ICF|ileMapWh|
|00000090| 61 74 3b 0d 0d 69 6e 74 | 65 72 66 61 63 65 0d 0d |at;..int|erface..|
|000000a0| 09 75 73 65 73 0d 09 09 | 49 43 57 69 6e 64 6f 77 |.uses...|ICWindow|
|000000b0| 47 6c 6f 62 61 6c 73 3b | 0d 0d 09 66 75 6e 63 74 |Globals;|...funct|
|000000c0| 69 6f 6e 20 57 68 61 74 | 4f 70 65 6e 46 69 6c 65 |ion What|OpenFile|
|000000d0| 4d 61 70 20 28 77 74 3a | 20 57 69 6e 64 6f 77 54 |Map (wt:| WindowT|
|000000e0| 79 70 65 3b 20 69 74 65 | 6d 3a 20 69 6e 74 65 67 |ype; ite|m: integ|
|000000f0| 65 72 29 3a 20 4f 53 45 | 72 72 3b 0d 09 66 75 6e |er): OSE|rr;..fun|
|00000100| 63 74 69 6f 6e 20 57 68 | 61 74 41 63 74 69 76 61 |ction Wh|atActiva|
|00000110| 74 65 46 69 6c 65 4d 61 | 70 20 28 77 74 3a 20 57 |teFileMa|p (wt: W|
|00000120| 69 6e 64 6f 77 54 79 70 | 65 3b 20 69 74 65 6d 3a |indowTyp|e; item:|
|00000130| 20 69 6e 74 65 67 65 72 | 3b 20 61 63 74 69 76 61 | integer|; activa|
|00000140| 74 65 3a 20 62 6f 6f 6c | 65 61 6e 29 3a 20 4f 53 |te: bool|ean): OS|
|00000150| 45 72 72 3b 0d 09 66 75 | 6e 63 74 69 6f 6e 20 57 |Err;..fu|nction W|
|00000160| 68 61 74 46 6c 75 73 68 | 46 69 6c 65 4d 61 70 20 |hatFlush|FileMap |
|00000170| 28 77 74 3a 20 57 69 6e | 64 6f 77 54 79 70 65 3b |(wt: Win|dowType;|
|00000180| 20 69 74 65 6d 3a 20 69 | 6e 74 65 67 65 72 29 3a | item: i|nteger):|
|00000190| 20 4f 53 45 72 72 3b 0d | 09 66 75 6e 63 74 69 6f | OSErr;.|.functio|
|000001a0| 6e 20 57 68 61 74 43 6c | 6f 73 65 46 69 6c 65 4d |n WhatCl|oseFileM|
|000001b0| 61 70 20 28 77 74 3a 20 | 57 69 6e 64 6f 77 54 79 |ap (wt: |WindowTy|
|000001c0| 70 65 3b 20 69 74 65 6d | 3a 20 69 6e 74 65 67 65 |pe; item|: intege|
|000001d0| 72 29 3a 20 4f 53 45 72 | 72 3b 0d 09 66 75 6e 63 |r): OSEr|r;..func|
|000001e0| 74 69 6f 6e 20 57 68 61 | 74 43 6c 69 63 6b 46 69 |tion Wha|tClickFi|
|000001f0| 6c 65 4d 61 70 20 28 77 | 74 3a 20 57 69 6e 64 6f |leMap (w|t: Windo|
|00000200| 77 54 79 70 65 3b 20 69 | 74 65 6d 3a 20 69 6e 74 |wType; i|tem: int|
|00000210| 65 67 65 72 3b 20 65 72 | 3a 20 65 76 65 6e 74 52 |eger; er|: eventR|
|00000220| 65 63 6f 72 64 29 3a 20 | 4f 53 45 72 72 3b 0d 09 |ecord): |OSErr;..|
|00000230| 66 75 6e 63 74 69 6f 6e | 20 57 68 61 74 4b 65 79 |function| WhatKey|
|00000240| 46 69 6c 65 4d 61 70 20 | 28 77 74 3a 20 57 69 6e |FileMap |(wt: Win|
|00000250| 64 6f 77 54 79 70 65 3b | 20 69 74 65 6d 3a 20 69 |dowType;| item: i|
|00000260| 6e 74 65 67 65 72 3b 20 | 65 72 3a 20 45 76 65 6e |nteger; |er: Even|
|00000270| 74 52 65 63 6f 72 64 29 | 3a 20 4f 53 45 72 72 3b |tRecord)|: OSErr;|
|00000280| 0d 09 66 75 6e 63 74 69 | 6f 6e 20 57 68 61 74 43 |..functi|on WhatC|
|00000290| 75 72 73 6f 72 46 69 6c | 65 4d 61 70 20 28 77 74 |ursorFil|eMap (wt|
|000002a0| 3a 20 57 69 6e 64 6f 77 | 54 79 70 65 3b 20 69 74 |: Window|Type; it|
|000002b0| 65 6d 3a 20 69 6e 74 65 | 67 65 72 3b 20 70 74 3a |em: inte|ger; pt:|
|000002c0| 20 50 6f 69 6e 74 3b 20 | 63 75 72 73 6f 72 69 64 | Point; |cursorid|
|000002d0| 3a 20 69 6e 74 65 67 65 | 72 29 3a 20 4f 53 45 72 |: intege|r): OSEr|
|000002e0| 72 3b 0d 0d 09 70 72 6f | 63 65 64 75 72 65 20 4d |r;...pro|cedure M|
|000002f0| 61 70 70 69 6e 67 53 65 | 74 53 65 6c 65 63 74 69 |appingSe|tSelecti|
|00000300| 6f 6e 28 6b 65 79 3a 53 | 74 72 32 35 35 29 3b 0d |on(key:S|tr255);.|
|00000310| 09 0d 69 6d 70 6c 65 6d | 65 6e 74 61 74 69 6f 6e |..implem|entation|
|00000320| 0d 0d 09 75 73 65 73 0d | 09 09 49 63 6f 6e 73 2c |...uses.|..Icons,|
|00000330| 20 44 69 61 6c 6f 67 73 | 2c 20 4c 69 73 74 73 2c | Dialogs|, Lists,|
|00000340| 20 46 6f 6e 74 73 2c 20 | 54 6f 6f 6c 55 74 69 6c | Fonts, |ToolUtil|
|00000350| 73 2c 20 52 65 73 6f 75 | 72 63 65 73 2c 0d 09 09 |s, Resou|rces,...|
|00000360| 49 43 53 74 72 48 2c 20 | 49 43 54 79 70 65 73 2c |ICStrH, |ICTypes,|
|00000370| 20 0d 0d 09 09 49 43 4b | 65 79 73 2c 20 49 43 41 | ....ICK|eys, ICA|
|00000380| 50 49 2c 20 49 43 53 75 | 62 73 2c 20 49 43 44 69 |PI, ICSu|bs, ICDi|
|00000390| 61 6c 6f 67 73 2c 20 49 | 43 4d 69 73 63 53 75 62 |alogs, I|CMiscSub|
|000003a0| 73 2c 20 49 43 4d 69 73 | 63 53 75 62 73 2c 20 49 |s, ICMis|cSubs, I|
|000003b0| 43 44 6f 63 75 6d 65 6e | 74 20 7b 58 7d 2c 20 49 |CDocumen|t {X}, I|
|000003c0| 43 47 6c 6f 62 61 6c 73 | 2c 20 7b 7d 0d 09 09 49 |CGlobals|, {}...I|
|000003d0| 43 49 43 6f 6e 53 75 69 | 74 65 73 2c 20 49 43 53 |CIConSui|tes, ICS|
|000003e0| 74 61 6e 64 61 72 64 46 | 69 6c 65 2c 20 49 43 4d |tandardF|ile, ICM|
|000003f0| 6f 76 61 62 6c 65 4d 6f | 64 61 6c 2c 20 49 43 57 |ovableMo|dal, ICW|
|00000400| 69 6e 64 6f 77 73 3b 0d | 0d 09 63 6f 6e 73 74 0d |indows;.|..const.|
|00000410| 09 09 64 69 74 43 68 61 | 6e 67 65 20 3d 20 31 3b |..ditCha|nge = 1;|
|00000420| 0d 09 09 64 69 74 4d 61 | 69 6e 55 73 65 72 49 74 |...ditMa|inUserIt|
|00000430| 65 6d 20 3d 20 32 3b 0d | 09 09 64 69 74 41 64 64 |em = 2;.|..ditAdd|
|00000440| 20 3d 20 33 3b 0d 09 09 | 64 69 74 44 65 6c 65 74 | = 3;...|ditDelet|
|00000450| 65 20 3d 20 34 3b 0d 09 | 09 64 69 74 4c 69 73 74 |e = 4;..|.ditList|
|00000460| 20 3d 20 35 3b 0d 09 09 | 64 69 74 53 6f 72 74 45 | = 5;...|ditSortE|
|00000470| 78 74 65 6e 73 69 6f 6e | 20 3d 20 36 3b 0d 09 09 |xtension| = 6;...|
|00000480| 64 69 74 53 6f 72 74 41 | 70 70 6c 69 63 61 74 69 |ditSortA|pplicati|
|00000490| 6f 6e 20 3d 20 37 3b 0d | 09 09 64 69 74 53 6f 72 |on = 7;.|..ditSor|
|000004a0| 74 4e 61 6d 65 20 3d 20 | 38 3b 0d 09 09 64 69 74 |tName = |8;...dit|
|000004b0| 44 65 66 61 75 6c 74 73 | 20 3d 20 39 3b 0d 0d 09 |Defaults| = 9;...|
|000004c0| 63 6f 6e 73 74 0d 09 09 | 64 69 74 4f 4b 20 3d 20 |const...|ditOK = |
|000004d0| 31 3b 0d 09 09 64 69 74 | 43 61 6e 63 65 6c 20 3d |1;...dit|Cancel =|
|000004e0| 20 32 3b 0d 09 09 64 69 | 74 45 64 69 74 6f 72 55 | 2;...di|tEditorU|
|000004f0| 73 65 72 49 74 65 6d 20 | 3d 20 33 3b 0d 09 09 64 |serItem |= 3;...d|
|00000500| 69 74 45 6e 74 72 79 4e | 61 6d 65 20 3d 20 34 3b |itEntryN|ame = 4;|
|00000510| 0d 09 09 64 69 74 45 78 | 74 65 6e 73 69 6f 6e 20 |...ditEx|tension |
|00000520| 3d 20 35 3b 0d 09 09 64 | 69 74 4d 49 4d 45 54 79 |= 5;...d|itMIMETy|
|00000530| 70 65 20 3d 20 36 3b 0d | 09 09 64 69 74 41 73 63 |pe = 6;.|..ditAsc|
|00000540| 69 69 52 61 64 69 6f 20 | 3d 20 37 3b 0d 09 09 64 |iiRadio |= 7;...d|
|00000550| 69 74 42 69 6e 61 72 79 | 52 61 64 69 6f 20 3d 20 |itBinary|Radio = |
|00000560| 38 3b 0d 09 09 64 69 74 | 4d 61 63 69 6e 74 6f 73 |8;...dit|Macintos|
|00000570| 68 52 61 64 69 6f 20 3d | 20 39 3b 0d 09 09 64 69 |hRadio =| 9;...di|
|00000580| 74 54 79 70 65 20 3d 20 | 31 30 3b 0d 09 09 64 69 |tType = |10;...di|
|00000590| 74 43 72 65 61 74 6f 72 | 20 3d 20 31 31 3b 0d 09 |tCreator| = 11;..|
|000005a0| 09 64 69 74 43 68 6f 6f | 73 65 45 78 61 6d 70 6c |.ditChoo|seExampl|
|000005b0| 65 20 3d 20 31 32 3b 0d | 09 09 64 69 74 41 70 70 |e = 12;.|..ditApp|
|000005c0| 6c 69 63 61 74 69 6f 6e | 4e 61 6d 65 20 3d 20 31 |lication|Name = 1|
|000005d0| 33 3b 0d 09 09 64 69 74 | 50 6f 73 74 20 3d 20 31 |3;...dit|Post = 1|
|000005e0| 34 3b 0d 09 09 64 69 74 | 50 6f 73 74 43 72 65 61 |4;...dit|PostCrea|
|000005f0| 74 6f 72 20 3d 20 31 35 | 3b 0d 09 09 64 69 74 50 |tor = 15|;...ditP|
|00000600| 6f 73 74 42 75 74 74 6f | 6e 20 3d 20 31 36 3b 0d |ostButto|n = 16;.|
|00000610| 09 09 64 69 74 4e 6f 74 | 46 6f 72 49 6e 63 6f 6d |..ditNot|ForIncom|
|00000620| 69 6e 67 20 3d 20 31 37 | 3b 0d 09 09 64 69 74 4e |ing = 17|;...ditN|
|00000630| 6f 74 46 6f 72 4f 75 74 | 67 6f 69 6e 67 20 3d 20 |otForOut|going = |
|00000640| 31 38 3b 0d 09 09 64 69 | 74 41 64 64 45 64 69 74 |18;...di|tAddEdit|
|00000650| 44 65 66 61 75 6c 74 73 | 20 3d 20 31 39 3b 0d 0d |Defaults| = 19;..|
|00000660| 09 63 6f 6e 73 74 0d 09 | 09 6b 43 65 6c 6c 48 65 |.const..|.kCellHe|
|00000670| 69 67 68 74 20 3d 20 33 | 36 3b 0d 0d 09 70 72 6f |ight = 3|6;...pro|
|00000680| 63 65 64 75 72 65 20 44 | 69 6d 42 75 74 74 6f 6e |cedure D|imButton|
|00000690| 73 20 28 77 74 3a 20 57 | 69 6e 64 6f 77 54 79 70 |s (wt: W|indowTyp|
|000006a0| 65 29 3b 0d 09 09 76 61 | 72 0d 09 09 09 68 61 76 |e);...va|r....hav|
|000006b0| 65 5f 73 65 6c 65 63 74 | 69 6f 6e 3a 20 62 6f 6f |e_select|ion: boo|
|000006c0| 6c 65 61 6e 3b 0d 09 09 | 09 64 6c 67 3a 20 44 69 |lean;...|.dlg: Di|
|000006d0| 61 6c 6f 67 50 74 72 3b | 0d 09 09 09 6c 68 3a 20 |alogPtr;|....lh: |
|000006e0| 4c 69 73 74 48 61 6e 64 | 6c 65 3b 0d 09 62 65 67 |ListHand|le;..beg|
|000006f0| 69 6e 0d 09 09 6c 68 20 | 3a 3d 20 4c 69 73 74 48 |in...lh |:= ListH|
|00000700| 61 6e 64 6c 65 28 77 69 | 6e 64 6f 77 69 6e 66 6f |andle(wi|ndowinfo|
|00000710| 5b 77 74 5d 2e 69 74 65 | 6d 73 5b 64 69 74 4c 69 |[wt].ite|ms[ditLi|
|00000720| 73 74 5d 5e 2e 73 70 61 | 72 65 5f 64 61 74 61 29 |st]^.spa|re_data)|
|00000730| 3b 0d 09 09 64 6c 67 20 | 3a 3d 20 77 69 6e 64 6f |;...dlg |:= windo|
|00000740| 77 69 6e 66 6f 5b 77 74 | 5d 2e 77 69 6e 64 6f 77 |winfo[wt|].window|
|00000750| 3b 0d 09 09 68 61 76 65 | 5f 73 65 6c 65 63 74 69 |;...have|_selecti|
|00000760| 6f 6e 20 3a 3d 20 28 53 | 65 6c 65 63 74 65 64 4c |on := (S|electedL|
|00000770| 69 6e 65 28 6c 68 29 20 | 3c 3e 20 2d 31 29 3b 0d |ine(lh) |<> -1);.|
|00000780| 09 09 53 65 74 44 43 74 | 6c 45 6e 61 62 6c 65 28 |..SetDCt|lEnable(|
|00000790| 64 6c 67 2c 20 64 69 74 | 41 64 64 2c 20 6e 6f 74 |dlg, dit|Add, not|
|000007a0| 20 49 73 4c 6f 63 6b 65 | 64 28 77 74 2c 20 64 69 | IsLocke|d(wt, di|
|000007b0| 74 4c 69 73 74 29 29 3b | 0d 09 09 53 65 74 44 43 |tList));|...SetDC|
|000007c0| 74 6c 45 6e 61 62 6c 65 | 28 64 6c 67 2c 20 64 69 |tlEnable|(dlg, di|
|000007d0| 74 44 65 6c 65 74 65 2c | 20 68 61 76 65 5f 73 65 |tDelete,| have_se|
|000007e0| 6c 65 63 74 69 6f 6e 20 | 61 6e 64 20 6e 6f 74 20 |lection |and not |
|000007f0| 49 73 4c 6f 63 6b 65 64 | 28 77 74 2c 20 64 69 74 |IsLocked|(wt, dit|
|00000800| 4c 69 73 74 29 29 3b 0d | 09 09 53 65 74 44 43 74 |List));.|..SetDCt|
|00000810| 6c 45 6e 61 62 6c 65 28 | 64 6c 67 2c 20 64 69 74 |lEnable(|dlg, dit|
|00000820| 43 68 61 6e 67 65 2c 20 | 68 61 76 65 5f 73 65 6c |Change, |have_sel|
|00000830| 65 63 74 69 6f 6e 20 61 | 6e 64 20 6e 6f 74 20 49 |ection a|nd not I|
|00000840| 73 4c 6f 63 6b 65 64 28 | 77 74 2c 20 64 69 74 4c |sLocked(|wt, ditL|
|00000850| 69 73 74 29 29 3b 0d 09 | 09 53 65 74 44 43 74 6c |ist));..|.SetDCtl|
|00000860| 45 6e 61 62 6c 65 28 64 | 6c 67 2c 20 64 69 74 44 |Enable(d|lg, ditD|
|00000870| 65 66 61 75 6c 74 73 2c | 20 6e 6f 74 20 49 73 4c |efaults,| not IsL|
|00000880| 6f 63 6b 65 64 28 77 74 | 2c 20 64 69 74 4c 69 73 |ocked(wt|, ditLis|
|00000890| 74 29 29 3b 0d 09 09 4f | 75 74 6c 69 6e 65 44 65 |t));...O|utlineDe|
|000008a0| 66 61 75 6c 74 31 28 64 | 6c 67 2c 20 64 69 74 4d |fault1(d|lg, ditM|
|000008b0| 61 69 6e 55 73 65 72 49 | 74 65 6d 29 3b 0d 09 65 |ainUserI|tem);..e|
|000008c0| 6e 64 3b 20 28 2a 20 44 | 69 6d 42 75 74 74 6f 6e |nd; (* D|imButton|
|000008d0| 73 20 2a 29 0d 0d 09 70 | 72 6f 63 65 64 75 72 65 |s *)...p|rocedure|
|000008e0| 20 4d 79 4c 44 45 46 20 | 28 6d 65 73 73 61 67 65 | MyLDEF |(message|
|000008f0| 3a 20 69 6e 74 65 67 65 | 72 3b 20 73 65 6c 65 63 |: intege|r; selec|
|00000900| 74 3a 20 62 6f 6f 6c 65 | 61 6e 3b 20 76 61 72 20 |t: boole|an; var |
|00000910| 72 3a 20 52 65 63 74 3b | 20 74 68 65 5f 63 65 6c |r: Rect;| the_cel|
|00000920| 6c 3a 20 43 65 6c 6c 3b | 20 6f 66 66 73 65 74 3a |l: Cell;| offset:|
|00000930| 20 69 6e 74 65 67 65 72 | 3b 20 64 61 74 61 6c 65 | integer|; datale|
|00000940| 6e 3a 20 69 6e 74 65 67 | 65 72 3b 20 6c 68 3a 20 |n: integ|er; lh: |
|00000950| 4c 69 73 74 48 61 6e 64 | 6c 65 29 3b 0d 09 09 76 |ListHand|le);...v|
|00000960| 61 72 0d 09 09 09 65 6e | 74 72 69 65 73 3a 20 48 |ar....en|tries: H|
|00000970| 61 6e 64 6c 65 3b 0d 0d | 09 09 70 72 6f 63 65 64 |andle;..|..proced|
|00000980| 75 72 65 20 4c 44 43 6c | 6f 73 65 3b 0d 09 09 62 |ure LDCl|ose;...b|
|00000990| 65 67 69 6e 0d 09 09 09 | 28 2a 20 64 6f 20 6e 6f |egin....|(* do no|
|000009a0| 74 68 69 6e 67 20 2a 29 | 0d 09 09 65 6e 64 3b 0d |thing *)|...end;.|
|000009b0| 0d 09 09 70 72 6f 63 65 | 64 75 72 65 20 4c 44 44 |...proce|dure LDD|
|000009c0| 72 61 77 3b 0d 09 09 09 | 63 6f 6e 73 74 0d 09 09 |raw;....|const...|
|000009d0| 09 09 48 69 6c 69 74 65 | 4d 6f 64 65 20 3d 20 24 |..Hilite|Mode = $|
|000009e0| 39 33 38 3b 0d 09 09 09 | 76 61 72 0d 09 09 09 09 |938;....|var.....|
|000009f0| 65 6e 74 72 79 3a 20 49 | 43 4d 61 70 45 6e 74 72 |entry: I|CMapEntr|
|00000a00| 79 3b 0d 09 09 09 09 65 | 72 72 3a 20 4f 53 45 72 |y;.....e|rr: OSEr|
|00000a10| 72 3b 0d 09 09 09 09 6a | 75 6e 6b 70 6f 73 3a 20 |r;.....j|unkpos: |
|00000a20| 6c 6f 6e 67 69 6e 74 3b | 0d 09 09 09 09 73 75 69 |longint;|.....sui|
|00000a30| 74 65 3a 20 48 61 6e 64 | 6c 65 3b 0d 09 09 09 09 |te: Hand|le;.....|
|00000a40| 63 75 72 5f 78 3a 20 69 | 6e 74 65 67 65 72 3b 0d |cur_x: i|nteger;.|
|00000a50| 09 09 09 09 6a 75 6e 6b | 3a 20 4f 53 45 72 72 3b |....junk|: OSErr;|
|00000a60| 0d 09 09 09 09 74 6d 70 | 72 65 63 74 3a 20 52 65 |.....tmp|rect: Re|
|00000a70| 63 74 3b 0d 09 09 09 09 | 73 79 73 5f 66 6f 6e 74 |ct;.....|sys_font|
|00000a80| 5f 69 6e 66 6f 2c 20 61 | 70 70 6c 5f 66 6f 6e 74 |_info, a|ppl_font|
|00000a90| 5f 69 6e 66 6f 3a 20 46 | 6f 6e 74 49 6e 66 6f 3b |_info: F|ontInfo;|
|00000aa0| 0d 09 09 09 09 74 6f 70 | 3a 20 69 6e 74 65 67 65 |.....top|: intege|
|00000ab0| 72 3b 0d 09 09 09 09 74 | 72 61 6e 73 66 65 72 3a |r;.....t|ransfer:|
|00000ac0| 20 69 6e 74 65 67 65 72 | 3b 0d 09 09 09 09 72 67 | integer|;.....rg|
|00000ad0| 6e 3a 20 52 67 6e 48 61 | 6e 64 6c 65 3b 0d 09 09 |n: RgnHa|ndle;...|
|00000ae0| 09 09 72 67 6e 32 3a 20 | 52 67 6e 48 61 6e 64 6c |..rgn2: |RgnHandl|
|00000af0| 65 3b 0d 09 09 62 65 67 | 69 6e 0d 09 09 09 69 66 |e;...beg|in....if|
|00000b00| 20 64 61 74 61 6c 65 6e | 20 3d 20 30 20 74 68 65 | datalen| = 0 the|
|00000b10| 6e 20 62 65 67 69 6e 0d | 09 09 09 09 65 72 72 20 |n begin.|....err |
|00000b20| 3a 3d 20 49 43 4d 61 70 | 45 72 72 28 49 43 47 65 |:= ICMap|Err(ICGe|
|00000b30| 74 49 6e 64 4d 61 70 45 | 6e 74 72 79 28 47 65 74 |tIndMapE|ntry(Get|
|00000b40| 49 6e 73 74 61 6e 63 65 | 2c 20 65 6e 74 72 69 65 |Instance|, entrie|
|00000b50| 73 2c 20 74 68 65 5f 63 | 65 6c 6c 2e 76 20 2b 20 |s, the_c|ell.v + |
|00000b60| 31 2c 20 6a 75 6e 6b 70 | 6f 73 2c 20 65 6e 74 72 |1, junkp|os, entr|
|00000b70| 79 29 29 3b 0d 09 09 09 | 09 69 66 20 65 72 72 20 |y));....|.if err |
|00000b80| 3d 20 6e 6f 45 72 72 20 | 74 68 65 6e 20 62 65 67 |= noErr |then beg|
|00000b90| 69 6e 0d 09 09 09 09 09 | 45 72 61 73 65 52 65 63 |in......|EraseRec|
|00000ba0| 74 28 72 29 3b 0d 09 09 | 09 09 09 63 75 72 5f 78 |t(r);...|...cur_x|
|00000bb0| 20 3a 3d 20 30 3b 0d 09 | 09 09 09 09 72 67 6e 20 | := 0;..|....rgn |
|00000bc0| 3a 3d 20 4e 65 77 52 67 | 6e 3b 0d 09 09 09 09 09 |:= NewRg|n;......|
|00000bd0| 69 66 20 73 79 73 74 65 | 6d 37 20 74 68 65 6e 20 |if syste|m7 then |
|00000be0| 62 65 67 69 6e 0d 09 09 | 09 09 09 09 74 6d 70 72 |begin...|....tmpr|
|00000bf0| 65 63 74 20 3a 3d 20 72 | 3b 0d 09 09 09 09 09 09 |ect := r|;.......|
|00000c00| 74 6d 70 72 65 63 74 2e | 62 6f 74 74 6f 6d 20 3a |tmprect.|bottom :|
|00000c10| 3d 20 74 6d 70 72 65 63 | 74 2e 74 6f 70 20 2b 20 |= tmprec|t.top + |
|00000c20| 33 32 3b 0d 09 09 09 09 | 09 09 74 6d 70 72 65 63 |32;.....|..tmprec|
|00000c30| 74 2e 72 69 67 68 74 20 | 3a 3d 20 74 6d 70 72 65 |t.right |:= tmpre|
|00000c40| 63 74 2e 6c 65 66 74 20 | 2b 20 33 32 3b 0d 09 09 |ct.left |+ 32;...|
|00000c50| 09 09 09 09 4f 66 66 73 | 65 74 52 65 63 74 28 74 |....Offs|etRect(t|
|00000c60| 6d 70 72 65 63 74 2c 20 | 28 6b 43 65 6c 6c 48 65 |mprect, |(kCellHe|
|00000c70| 69 67 68 74 20 2d 20 33 | 32 29 20 64 69 76 20 32 |ight - 3|2) div 2|
|00000c80| 2c 20 28 6b 43 65 6c 6c | 48 65 69 67 68 74 20 2d |, (kCell|Height -|
|00000c90| 20 33 32 29 20 64 69 76 | 20 32 29 3b 0d 09 09 09 | 32) div| 2);....|
|00000ca0| 09 09 09 6a 75 6e 6b 20 | 3a 3d 20 47 65 74 44 54 |...junk |:= GetDT|
|00000cb0| 44 42 49 63 6f 6e 53 75 | 69 74 65 43 61 63 68 65 |DBIconSu|iteCache|
|00000cc0| 64 28 65 6e 74 72 79 2e | 66 69 6c 65 5f 74 79 70 |d(entry.|file_typ|
|00000cd0| 65 2c 20 65 6e 74 72 79 | 2e 66 69 6c 65 5f 63 72 |e, entry|.file_cr|
|00000ce0| 65 61 74 6f 72 2c 20 73 | 75 69 74 65 29 3b 0d 09 |eator, s|uite);..|
|00000cf0| 09 09 09 09 09 69 66 20 | 73 75 69 74 65 20 3c 3e |.....if |suite <>|
|00000d00| 20 6e 69 6c 20 74 68 65 | 6e 20 62 65 67 69 6e 0d | nil the|n begin.|
|00000d10| 09 09 09 09 09 09 09 69 | 66 20 73 65 6c 65 63 74 |.......i|f select|
|00000d20| 20 74 68 65 6e 20 62 65 | 67 69 6e 0d 09 09 09 09 | then be|gin.....|
|00000d30| 09 09 09 09 74 72 61 6e | 73 66 65 72 20 3a 3d 20 |....tran|sfer := |
|00000d40| 74 74 53 65 6c 65 63 74 | 65 64 3b 0d 09 09 09 09 |ttSelect|ed;.....|
|00000d50| 09 09 09 65 6e 64 20 65 | 6c 73 65 20 62 65 67 69 |...end e|lse begi|
|00000d60| 6e 0d 09 09 09 09 09 09 | 09 09 74 72 61 6e 73 66 |n.......|..transf|
|00000d70| 65 72 20 3a 3d 20 74 74 | 4e 6f 6e 65 3b 0d 09 09 |er := tt|None;...|
|00000d80| 09 09 09 09 09 65 6e 64 | 3b 20 28 2a 20 69 66 20 |.....end|; (* if |
|00000d90| 2a 29 0d 09 09 09 09 09 | 09 09 65 72 72 20 3a 3d |*)......|..err :=|
|00000da0| 20 50 6c 6f 74 49 63 6f | 6e 53 75 69 74 65 28 74 | PlotIco|nSuite(t|
|00000db0| 6d 70 72 65 63 74 2c 20 | 61 74 4e 6f 6e 65 2c 20 |mprect, |atNone, |
|00000dc0| 74 72 61 6e 73 66 65 72 | 2c 20 73 75 69 74 65 29 |transfer|, suite)|
|00000dd0| 3b 0d 09 09 09 09 09 09 | 09 6a 75 6e 6b 20 3a 3d |;.......|.junk :=|
|00000de0| 20 49 63 6f 6e 53 75 69 | 74 65 54 6f 52 67 6e 28 | IconSui|teToRgn(|
|00000df0| 72 67 6e 2c 20 74 6d 70 | 72 65 63 74 2c 20 61 74 |rgn, tmp|rect, at|
|00000e00| 4e 6f 6e 65 2c 20 73 75 | 69 74 65 29 3b 0d 09 09 |None, su|ite);...|
|00000e10| 09 09 09 09 65 6e 64 3b | 20 28 2a 20 69 66 20 2a |....end;| (* if *|
|00000e20| 29 0d 09 09 09 09 09 09 | 63 75 72 5f 78 20 3a 3d |).......|cur_x :=|
|00000e30| 20 63 75 72 5f 78 20 2b | 20 6b 43 65 6c 6c 48 65 | cur_x +| kCellHe|
|00000e40| 69 67 68 74 3b 0d 09 09 | 09 09 09 65 6e 64 3b 0d |ight;...|...end;.|
|00000e50| 09 09 09 09 09 63 75 72 | 5f 78 20 3a 3d 20 63 75 |.....cur|_x := cu|
|00000e60| 72 5f 78 20 2b 20 32 3b | 0d 0d 09 09 09 09 09 54 |r_x + 2;|.......T|
|00000e70| 65 78 74 46 6f 6e 74 28 | 73 79 73 74 65 6d 46 6f |extFont(|systemFo|
|00000e80| 6e 74 29 3b 0d 09 09 09 | 09 09 47 65 74 46 6f 6e |nt);....|..GetFon|
|00000e90| 74 49 6e 66 6f 28 73 79 | 73 5f 66 6f 6e 74 5f 69 |tInfo(sy|s_font_i|
|00000ea0| 6e 66 6f 29 3b 0d 0d 09 | 09 09 09 09 54 65 78 74 |nfo);...|....Text|
|00000eb0| 46 6f 6e 74 28 61 70 70 | 6c 46 6f 6e 74 29 3b 0d |Font(app|lFont);.|
|00000ec0| 09 09 09 09 09 47 65 74 | 46 6f 6e 74 49 6e 66 6f |.....Get|FontInfo|
|00000ed0| 28 61 70 70 6c 5f 66 6f | 6e 74 5f 69 6e 66 6f 29 |(appl_fo|nt_info)|
|00000ee0| 3b 0d 0d 09 09 09 09 09 | 74 6f 70 20 3a 3d 20 28 |;.......|top := (|
|00000ef0| 6b 43 65 6c 6c 48 65 69 | 67 68 74 20 2d 20 28 73 |kCellHei|ght - (s|
|00000f00| 79 73 5f 66 6f 6e 74 5f | 69 6e 66 6f 2e 61 73 63 |ys_font_|info.asc|
|00000f10| 65 6e 74 20 2b 20 73 79 | 73 5f 66 6f 6e 74 5f 69 |ent + sy|s_font_i|
|00000f20| 6e 66 6f 2e 64 65 73 63 | 65 6e 74 20 2b 20 30 20 |nfo.desc|ent + 0 |
|00000f30| 2b 20 61 70 70 6c 5f 66 | 6f 6e 74 5f 69 6e 66 6f |+ appl_f|ont_info|
|00000f40| 2e 61 73 63 65 6e 74 20 | 2b 20 61 70 70 6c 5f 66 |.ascent |+ appl_f|
|00000f50| 6f 6e 74 5f 69 6e 66 6f | 2e 64 65 73 63 65 6e 74 |ont_info|.descent|
|00000f60| 29 29 20 64 69 76 20 32 | 3b 0d 09 09 09 09 09 54 |)) div 2|;......T|
|00000f70| 65 78 74 46 6f 6e 74 28 | 73 79 73 74 65 6d 46 6f |extFont(|systemFo|
|00000f80| 6e 74 29 3b 0d 09 09 09 | 09 09 4d 6f 76 65 54 6f |nt);....|..MoveTo|
|00000f90| 28 72 2e 6c 65 66 74 20 | 2b 20 63 75 72 5f 78 2c |(r.left |+ cur_x,|
|00000fa0| 20 72 2e 74 6f 70 20 2b | 20 74 6f 70 20 2b 20 73 | r.top +| top + s|
|00000fb0| 79 73 5f 66 6f 6e 74 5f | 69 6e 66 6f 2e 61 73 63 |ys_font_|info.asc|
|00000fc0| 65 6e 74 29 3b 0d 09 09 | 09 09 09 44 72 61 77 53 |ent);...|...DrawS|
|00000fd0| 74 72 69 6e 67 28 63 6f | 6e 63 61 74 28 65 6e 74 |tring(co|ncat(ent|
|00000fe0| 72 79 2e 63 72 65 61 74 | 6f 72 5f 61 70 70 5f 6e |ry.creat|or_app_n|
|00000ff0| 61 6d 65 2c 20 47 65 74 | 41 53 74 72 69 6e 67 28 |ame, Get|AString(|
|00001000| 31 32 38 2c 20 35 29 2c | 20 65 6e 74 72 79 2e 65 |128, 5),| entry.e|
|00001010| 6e 74 72 79 5f 6e 61 6d | 65 29 29 3b 0d 0d 09 09 |ntry_nam|e));....|
|00001020| 09 09 09 54 65 78 74 46 | 6f 6e 74 28 61 70 70 6c |...TextF|ont(appl|
|00001030| 46 6f 6e 74 29 3b 0d 09 | 09 09 09 09 4d 6f 76 65 |Font);..|....Move|
|00001040| 54 6f 28 72 2e 6c 65 66 | 74 20 2b 20 63 75 72 5f |To(r.lef|t + cur_|
|00001050| 78 2c 20 72 2e 74 6f 70 | 20 2b 20 74 6f 70 20 2b |x, r.top| + top +|
|00001060| 20 73 79 73 5f 66 6f 6e | 74 5f 69 6e 66 6f 2e 61 | sys_fon|t_info.a|
|00001070| 73 63 65 6e 74 20 2b 20 | 73 79 73 5f 66 6f 6e 74 |scent + |sys_font|
|00001080| 5f 69 6e 66 6f 2e 64 65 | 73 63 65 6e 74 20 2b 20 |_info.de|scent + |
|00001090| 30 20 2b 20 61 70 70 6c | 5f 66 6f 6e 74 5f 69 6e |0 + appl|_font_in|
|000010a0| 66 6f 2e 61 73 63 65 6e | 74 29 3b 0d 09 09 09 09 |fo.ascen|t);.....|
|000010b0| 09 44 72 61 77 53 74 72 | 69 6e 67 28 65 6e 74 72 |.DrawStr|ing(entr|
|000010c0| 79 2e 65 78 74 65 6e 73 | 69 6f 6e 29 3b 0d 0d 09 |y.extens|ion);...|
|000010d0| 09 09 09 09 69 66 20 73 | 65 6c 65 63 74 20 74 68 |....if s|elect th|
|000010e0| 65 6e 20 62 65 67 69 6e | 0d 09 09 09 09 09 09 72 |en begin|.......r|
|000010f0| 67 6e 32 20 3a 3d 20 4e | 65 77 52 67 6e 3b 0d 09 |gn2 := N|ewRgn;..|
|00001100| 09 09 09 09 09 52 65 63 | 74 52 67 6e 28 72 67 6e |.....Rec|tRgn(rgn|
|00001110| 32 2c 20 72 29 3b 0d 09 | 09 09 09 09 09 69 66 20 |2, r);..|.....if |
|00001120| 68 61 73 5f 63 6f 6c 6f | 72 51 44 20 74 68 65 6e |has_colo|rQD then|
|00001130| 20 62 65 67 69 6e 0d 09 | 09 09 09 09 09 09 42 69 | begin..|......Bi|
|00001140| 74 43 6c 72 28 50 74 72 | 28 48 69 6c 69 74 65 4d |tClr(Ptr|(HiliteM|
|00001150| 6f 64 65 29 2c 20 70 48 | 69 6c 69 74 65 42 69 74 |ode), pH|iliteBit|
|00001160| 29 3b 0d 09 09 09 09 09 | 09 65 6e 64 3b 20 28 2a |);......|.end; (*|
|00001170| 20 69 66 20 2a 29 0d 09 | 09 09 09 09 09 58 6f 72 | if *)..|.....Xor|
|00001180| 52 67 6e 28 72 67 6e 2c | 20 72 67 6e 32 2c 20 72 |Rgn(rgn,| rgn2, r|
|00001190| 67 6e 32 29 3b 0d 09 09 | 09 09 09 09 49 6e 76 65 |gn2);...|....Inve|
|000011a0| 72 74 52 67 6e 28 72 67 | 6e 32 29 3b 0d 09 09 09 |rtRgn(rg|n2);....|
|000011b0| 09 09 09 44 69 73 70 6f | 73 65 52 67 6e 28 72 67 |...Dispo|seRgn(rg|
|000011c0| 6e 32 29 3b 0d 09 09 09 | 09 09 65 6e 64 3b 20 28 |n2);....|..end; (|
|000011d0| 2a 20 69 66 20 2a 29 0d | 09 09 09 09 09 69 66 20 |* if *).|.....if |
|000011e0| 72 67 6e 20 3c 3e 20 6e | 69 6c 20 74 68 65 6e 20 |rgn <> n|il then |
|000011f0| 62 65 67 69 6e 0d 09 09 | 09 09 09 09 44 69 73 70 |begin...|....Disp|
|00001200| 6f 73 65 52 67 6e 28 72 | 67 6e 29 3b 0d 09 09 09 |oseRgn(r|gn);....|
|00001210| 09 09 65 6e 64 3b 20 28 | 2a 20 69 66 20 2a 29 0d |..end; (|* if *).|
|00001220| 09 09 09 09 65 6e 64 3b | 20 28 2a 20 69 66 20 2a |....end;| (* if *|
|00001230| 29 0d 09 09 09 65 6e 64 | 3b 0d 09 09 65 6e 64 3b |)....end|;...end;|
|00001240| 0d 0d 09 62 65 67 69 6e | 0d 09 09 6f 66 66 73 65 |...begin|...offse|
|00001250| 74 20 3a 3d 20 6f 66 66 | 73 65 74 3b 20 7b 20 55 |t := off|set; { U|
|00001260| 6e 75 73 65 64 20 7d 0d | 09 09 53 65 74 50 6f 72 |nused }.|..SetPor|
|00001270| 74 28 6c 68 5e 5e 2e 70 | 6f 72 74 29 3b 0d 09 09 |t(lh^^.p|ort);...|
|00001280| 65 6e 74 72 69 65 73 20 | 3a 3d 20 48 61 6e 64 6c |entries |:= Handl|
|00001290| 65 28 77 69 6e 64 6f 77 | 69 6e 66 6f 5b 47 65 74 |e(window|info[Get|
|000012a0| 57 69 6e 64 6f 77 54 79 | 70 65 28 6c 68 5e 5e 2e |WindowTy|pe(lh^^.|
|000012b0| 70 6f 72 74 29 5d 2e 69 | 74 65 6d 73 5b 64 69 74 |port)].i|tems[dit|
|000012c0| 4c 69 73 74 5d 5e 2e 64 | 61 74 61 29 3b 0d 09 09 |List]^.d|ata);...|
|000012d0| 63 61 73 65 20 6d 65 73 | 73 61 67 65 20 6f 66 0d |case mes|sage of.|
|000012e0| 09 09 09 6c 49 6e 69 74 | 4d 73 67 3a 20 0d 09 09 |...lInit|Msg: ...|
|000012f0| 09 09 3b 0d 09 09 09 6c | 44 72 61 77 4d 73 67 3a |..;....l|DrawMsg:|
|00001300| 20 0d 09 09 09 09 4c 44 | 44 72 61 77 3b 0d 09 09 | .....LD|Draw;...|
|00001310| 09 6c 48 69 6c 69 74 65 | 4d 73 67 3a 20 0d 09 09 |.lHilite|Msg: ...|
|00001320| 09 09 4c 44 44 72 61 77 | 3b 0d 09 09 09 6c 43 6c |..LDDraw|;....lCl|
|00001330| 6f 73 65 4d 73 67 3a 20 | 0d 09 09 09 09 4c 44 43 |oseMsg: |.....LDC|
|00001340| 6c 6f 73 65 3b 0d 09 09 | 65 6e 64 3b 0d 09 65 6e |lose;...|end;..en|
|00001350| 64 3b 20 28 2a 20 4d 79 | 4c 44 45 46 20 2a 29 0d |d; (* My|LDEF *).|
|00001360| 0d 09 70 72 6f 63 65 64 | 75 72 65 20 55 73 65 72 |..proced|ure User|
|00001370| 49 74 65 6d 55 70 64 61 | 74 65 20 28 64 6c 67 3a |ItemUpda|te (dlg:|
|00001380| 20 44 69 61 6c 6f 67 50 | 74 72 3b 20 69 74 65 6d | DialogP|tr; item|
|00001390| 3a 20 69 6e 74 65 67 65 | 72 29 3b 0d 09 09 76 61 |: intege|r);...va|
|000013a0| 72 0d 09 09 09 6c 69 73 | 74 5f 72 65 63 74 3a 20 |r....lis|t_rect: |
|000013b0| 52 65 63 74 3b 0d 09 62 | 65 67 69 6e 0d 09 09 47 |Rect;..b|egin...G|
|000013c0| 65 74 44 49 74 65 6d 52 | 65 63 74 28 64 6c 67 2c |etDItemR|ect(dlg,|
|000013d0| 20 69 74 65 6d 2c 20 6c | 69 73 74 5f 72 65 63 74 | item, l|ist_rect|
|000013e0| 29 3b 0d 09 09 50 65 6e | 4e 6f 72 6d 61 6c 3b 0d |);...Pen|Normal;.|
|000013f0| 09 09 49 6e 73 65 74 52 | 65 63 74 28 6c 69 73 74 |..InsetR|ect(list|
|00001400| 5f 72 65 63 74 2c 20 2d | 31 2c 20 2d 31 29 3b 0d |_rect, -|1, -1);.|
|00001410| 09 09 46 72 61 6d 65 52 | 65 63 74 28 6c 69 73 74 |..FrameR|ect(list|
|00001420| 5f 72 65 63 74 29 3b 0d | 09 09 4c 55 70 64 61 74 |_rect);.|..LUpdat|
|00001430| 65 28 64 6c 67 5e 2e 76 | 69 73 52 67 6e 2c 20 4c |e(dlg^.v|isRgn, L|
|00001440| 69 73 74 48 61 6e 64 6c | 65 28 77 69 6e 64 6f 77 |istHandl|e(window|
|00001450| 69 6e 66 6f 5b 47 65 74 | 57 69 6e 64 6f 77 54 79 |info[Get|WindowTy|
|00001460| 70 65 28 64 6c 67 29 5d | 2e 69 74 65 6d 73 5b 69 |pe(dlg)]|.items[i|
|00001470| 74 65 6d 5d 5e 2e 73 70 | 61 72 65 5f 64 61 74 61 |tem]^.sp|are_data|
|00001480| 29 29 3b 0d 09 65 6e 64 | 3b 20 28 2a 20 55 73 65 |));..end|; (* Use|
|00001490| 72 49 74 65 6d 55 70 64 | 61 74 65 20 2a 29 0d 0d |rItemUpd|ate *)..|
|000014a0| 09 66 75 6e 63 74 69 6f | 6e 20 57 68 61 74 4f 70 |.functio|n WhatOp|
|000014b0| 65 6e 46 69 6c 65 4d 61 | 70 20 28 77 74 3a 20 57 |enFileMa|p (wt: W|
|000014c0| 69 6e 64 6f 77 54 79 70 | 65 3b 20 69 74 65 6d 3a |indowTyp|e; item:|
|000014d0| 20 69 6e 74 65 67 65 72 | 29 3a 20 4f 53 45 72 72 | integer|): OSErr|
|000014e0| 3b 0d 09 09 76 61 72 0d | 09 09 09 64 6c 67 3a 20 |;...var.|...dlg: |
|000014f0| 44 69 61 6c 6f 67 50 74 | 72 3b 0d 09 09 09 65 6e |DialogPt|r;....en|
|00001500| 74 72 69 65 73 3a 20 48 | 61 6e 64 6c 65 3b 0d 09 |tries: H|andle;..|
|00001510| 09 09 61 74 74 72 3a 20 | 6c 6f 6e 67 69 6e 74 3b |..attr: |longint;|
|00001520| 0d 09 09 09 65 72 72 3a | 20 4f 53 45 72 72 3b 0d |....err:| OSErr;.|
|00001530| 09 09 09 63 6f 75 6e 74 | 3a 20 6c 6f 6e 67 69 6e |...count|: longin|
|00001540| 74 3b 0d 09 09 09 6c 69 | 73 74 5f 72 65 63 74 3a |t;....li|st_rect:|
|00001550| 20 52 65 63 74 3b 0d 09 | 09 09 64 61 74 61 5f 72 | Rect;..|..data_r|
|00001560| 65 63 74 3a 20 52 65 63 | 74 3b 0d 09 09 09 63 65 |ect: Rec|t;....ce|
|00001570| 6c 6c 5f 73 69 7a 65 3a | 20 50 6f 69 6e 74 3b 0d |ll_size:| Point;.|
|00001580| 09 09 09 6c 68 3a 20 4c | 69 73 74 48 61 6e 64 6c |...lh: L|istHandl|
|00001590| 65 3b 0d 09 62 65 67 69 | 6e 0d 09 09 77 69 6e 64 |e;..begi|n...wind|
|000015a0| 6f 77 69 6e 66 6f 5b 77 | 74 5d 2e 69 74 65 6d 73 |owinfo[w|t].items|
|000015b0| 5b 69 74 65 6d 5d 5e 2e | 73 70 61 72 65 5f 64 61 |[item]^.|spare_da|
|000015c0| 74 61 20 3a 3d 20 6e 69 | 6c 3b 0d 09 09 77 69 6e |ta := ni|l;...win|
|000015d0| 64 6f 77 69 6e 66 6f 5b | 77 74 5d 2e 69 74 65 6d |dowinfo[|wt].item|
|000015e0| 73 5b 69 74 65 6d 5d 5e | 2e 64 61 74 61 20 3a 3d |s[item]^|.data :=|
|000015f0| 20 6e 69 6c 3b 0d 09 09 | 65 72 72 20 3a 3d 20 6e | nil;...|err := n|
|00001600| 6f 45 72 72 3b 0d 09 09 | 64 6c 67 20 3a 3d 20 77 |oErr;...|dlg := w|
|00001610| 69 6e 64 6f 77 69 6e 66 | 6f 5b 77 74 5d 2e 77 69 |indowinf|o[wt].wi|
|00001620| 6e 64 6f 77 3b 0d 09 09 | 53 65 74 44 49 74 65 6d |ndow;...|SetDItem|
|00001630| 48 61 6e 64 6c 65 28 64 | 6c 67 2c 20 69 74 65 6d |Handle(d|lg, item|
|00001640| 2c 20 40 55 73 65 72 49 | 74 65 6d 55 70 64 61 74 |, @UserI|temUpdat|
|00001650| 65 29 3b 0d 09 09 69 66 | 20 49 43 4d 61 70 45 72 |e);...if| ICMapEr|
|00001660| 72 28 49 43 47 65 74 50 | 72 65 66 48 61 6e 64 6c |r(ICGetP|refHandl|
|00001670| 65 28 47 65 74 49 6e 73 | 74 61 6e 63 65 2c 20 77 |e(GetIns|tance, w|
|00001680| 69 6e 64 6f 77 69 6e 66 | 6f 5b 77 74 5d 2e 69 74 |indowinf|o[wt].it|
|00001690| 65 6d 73 5b 69 74 65 6d | 5d 5e 2e 6b 65 79 2c 20 |ems[item|]^.key, |
|000016a0| 61 74 74 72 2c 20 65 6e | 74 72 69 65 73 29 29 20 |attr, en|tries)) |
|000016b0| 3c 3e 20 6e 6f 45 72 72 | 20 74 68 65 6e 20 62 65 |<> noErr| then be|
|000016c0| 67 69 6e 0d 09 09 09 65 | 6e 74 72 69 65 73 20 3a |gin....e|ntries :|
|000016d0| 3d 20 4e 65 77 48 61 6e | 64 6c 65 28 30 29 3b 0d |= NewHan|dle(0);.|
|000016e0| 09 09 09 69 66 20 65 6e | 74 72 69 65 73 20 3d 20 |...if en|tries = |
|000016f0| 6e 69 6c 20 74 68 65 6e | 20 62 65 67 69 6e 0d 09 |nil then| begin..|
|00001700| 09 09 09 65 72 72 20 3a | 3d 20 6d 65 6d 46 75 6c |...err :|= memFul|
|00001710| 6c 45 72 72 3b 0d 09 09 | 09 65 6e 64 3b 20 28 2a |lErr;...|.end; (*|
|00001720| 20 69 66 20 2a 29 0d 09 | 09 65 6e 64 3b 20 28 2a | if *)..|.end; (*|
|00001730| 20 69 66 20 2a 29 0d 09 | 09 50 72 6f 63 65 73 73 | if *)..|.Process|
|00001740| 41 74 74 72 69 62 75 74 | 65 73 28 77 74 2c 20 69 |Attribut|es(wt, i|
|00001750| 74 65 6d 2c 20 61 74 74 | 72 29 3b 0d 09 09 69 66 |tem, att|r);...if|
|00001760| 20 65 72 72 20 3d 20 6e | 6f 45 72 72 20 74 68 65 | err = n|oErr the|
|00001770| 6e 20 62 65 67 69 6e 0d | 09 09 09 69 66 20 49 43 |n begin.|...if IC|
|00001780| 43 6f 75 6e 74 4d 61 70 | 45 6e 74 72 69 65 73 28 |CountMap|Entries(|
|00001790| 47 65 74 49 6e 73 74 61 | 6e 63 65 2c 20 65 6e 74 |GetInsta|nce, ent|
|000017a0| 72 69 65 73 2c 20 63 6f | 75 6e 74 29 20 3c 3e 20 |ries, co|unt) <> |
|000017b0| 6e 6f 45 72 72 20 74 68 | 65 6e 20 62 65 67 69 6e |noErr th|en begin|
|000017c0| 0d 09 09 09 09 63 6f 75 | 6e 74 20 3a 3d 20 30 3b |.....cou|nt := 0;|
|000017d0| 0d 09 09 09 65 6e 64 3b | 20 28 2a 20 69 66 20 2a |....end;| (* if *|
|000017e0| 29 0d 09 09 09 77 69 6e | 64 6f 77 69 6e 66 6f 5b |)....win|dowinfo[|
|000017f0| 77 74 5d 2e 69 74 65 6d | 73 5b 69 74 65 6d 5d 5e |wt].item|s[item]^|
|00001800| 2e 64 61 74 61 20 3a 3d | 20 50 74 72 28 65 6e 74 |.data :=| Ptr(ent|
|00001810| 72 69 65 73 29 3b 0d 09 | 09 09 47 65 74 44 49 74 |ries);..|..GetDIt|
|00001820| 65 6d 52 65 63 74 28 64 | 6c 67 2c 20 69 74 65 6d |emRect(d|lg, item|
|00001830| 2c 20 6c 69 73 74 5f 72 | 65 63 74 29 3b 0d 09 09 |, list_r|ect);...|
|00001840| 09 6c 69 73 74 5f 72 65 | 63 74 2e 72 69 67 68 74 |.list_re|ct.right|
|00001850| 20 3a 3d 20 6c 69 73 74 | 5f 72 65 63 74 2e 72 69 | := list|_rect.ri|
|00001860| 67 68 74 20 2d 20 31 35 | 3b 0d 09 09 09 53 65 74 |ght - 15|;....Set|
|00001870| 52 65 63 74 28 64 61 74 | 61 5f 72 65 63 74 2c 20 |Rect(dat|a_rect, |
|00001880| 30 2c 20 30 2c 20 31 2c | 20 63 6f 75 6e 74 29 3b |0, 0, 1,| count);|
|00001890| 0d 09 09 09 53 65 74 50 | 74 28 63 65 6c 6c 5f 73 |....SetP|t(cell_s|
|000018a0| 69 7a 65 2c 20 6c 69 73 | 74 5f 72 65 63 74 2e 72 |ize, lis|t_rect.r|
|000018b0| 69 67 68 74 20 2d 20 6c | 69 73 74 5f 72 65 63 74 |ight - l|ist_rect|
|000018c0| 2e 6c 65 66 74 2c 20 6b | 43 65 6c 6c 48 65 69 67 |.left, k|CellHeig|
|000018d0| 68 74 29 3b 0d 09 09 09 | 6c 68 20 3a 3d 20 4c 4e |ht);....|lh := LN|
|000018e0| 65 77 28 6c 69 73 74 5f | 72 65 63 74 2c 20 64 61 |ew(list_|rect, da|
|000018f0| 74 61 5f 72 65 63 74 2c | 20 63 65 6c 6c 5f 73 69 |ta_rect,| cell_si|
|00001900| 7a 65 2c 20 31 32 38 2c | 20 64 6c 67 2c 20 74 72 |ze, 128,| dlg, tr|
|00001910| 75 65 2c 20 66 61 6c 73 | 65 2c 20 66 61 6c 73 65 |ue, fals|e, false|
|00001920| 2c 20 74 72 75 65 29 3b | 0d 09 09 09 69 66 20 6c |, true);|....if l|
|00001930| 68 20 3d 20 6e 69 6c 20 | 74 68 65 6e 20 62 65 67 |h = nil |then beg|
|00001940| 69 6e 0d 09 09 09 09 65 | 72 72 20 3a 3d 20 6d 65 |in.....e|rr := me|
|00001950| 6d 46 75 6c 6c 45 72 72 | 3b 0d 09 09 09 65 6e 64 |mFullErr|;....end|
|00001960| 3b 20 28 2a 20 69 66 20 | 2a 29 0d 09 09 65 6e 64 |; (* if |*)...end|
|00001970| 3b 20 28 2a 20 69 66 20 | 2a 29 0d 09 09 69 66 20 |; (* if |*)...if |
|00001980| 65 72 72 20 3d 20 6e 6f | 45 72 72 20 74 68 65 6e |err = no|Err then|
|00001990| 20 62 65 67 69 6e 0d 09 | 09 09 6c 68 5e 5e 2e 72 | begin..|..lh^^.r|
|000019a0| 65 66 43 6f 6e 20 3a 3d | 20 6f 72 64 28 40 4d 79 |efCon :=| ord(@My|
|000019b0| 4c 44 45 46 29 3b 0d 09 | 09 09 6c 68 5e 5e 2e 73 |LDEF);..|..lh^^.s|
|000019c0| 65 6c 46 6c 61 67 73 20 | 3a 3d 20 6c 4f 6e 6c 79 |elFlags |:= lOnly|
|000019d0| 4f 6e 65 3b 0d 09 09 09 | 77 69 6e 64 6f 77 69 6e |One;....|windowin|
|000019e0| 66 6f 5b 77 74 5d 2e 69 | 74 65 6d 73 5b 69 74 65 |fo[wt].i|tems[ite|
|000019f0| 6d 5d 5e 2e 73 70 61 72 | 65 5f 64 61 74 61 20 3a |m]^.spar|e_data :|
|00001a00| 3d 20 50 74 72 28 6c 68 | 29 3b 0d 09 09 09 44 69 |= Ptr(lh|);....Di|
|00001a10| 6d 42 75 74 74 6f 6e 73 | 28 77 74 29 3b 0d 09 09 |mButtons|(wt);...|
|00001a20| 09 53 65 74 55 70 44 65 | 66 61 75 6c 74 4f 75 74 |.SetUpDe|faultOut|
|00001a30| 6c 69 6e 65 28 64 6c 67 | 2c 20 64 69 74 43 68 61 |line(dlg|, ditCha|
|00001a40| 6e 67 65 2c 20 64 69 74 | 4d 61 69 6e 55 73 65 72 |nge, dit|MainUser|
|00001a50| 49 74 65 6d 29 3b 0d 09 | 09 09 77 69 6e 64 6f 77 |Item);..|..window|
|00001a60| 69 6e 66 6f 5b 77 74 5d | 2e 73 65 6c 65 63 74 65 |info[wt]|.selecte|
|00001a70| 64 5f 69 74 65 6d 20 3a | 3d 20 64 69 74 4c 69 73 |d_item :|= ditLis|
|00001a80| 74 3b 0d 09 09 65 6e 64 | 3b 20 28 2a 20 69 66 20 |t;...end|; (* if |
|00001a90| 2a 29 0d 09 09 57 68 61 | 74 4f 70 65 6e 46 69 6c |*)...Wha|tOpenFil|
|00001aa0| 65 4d 61 70 20 3a 3d 20 | 65 72 72 3b 0d 09 65 6e |eMap := |err;..en|
|00001ab0| 64 3b 20 28 2a 20 57 68 | 61 74 4f 70 65 6e 46 69 |d; (* Wh|atOpenFi|
|00001ac0| 6c 65 4d 61 70 20 2a 29 | 0d 0d 09 70 72 6f 63 65 |leMap *)|...proce|
|00001ad0| 64 75 72 65 20 53 65 74 | 52 61 64 69 6f 20 28 6d |dure Set|Radio (m|
|00001ae0| 6f 64 61 6c 3a 20 44 69 | 61 6c 6f 67 50 74 72 3b |odal: Di|alogPtr;|
|00001af0| 20 76 61 6c 75 65 3a 20 | 69 6e 74 65 67 65 72 29 | value: |integer)|
|00001b00| 3b 0d 09 62 65 67 69 6e | 0d 09 09 53 65 74 44 43 |;..begin|...SetDC|
|00001b10| 74 6c 42 6f 6f 6c 65 61 | 6e 28 6d 6f 64 61 6c 2c |tlBoolea|n(modal,|
|00001b20| 20 64 69 74 41 73 63 69 | 69 52 61 64 69 6f 2c 20 | ditAsci|iRadio, |
|00001b30| 76 61 6c 75 65 20 3d 20 | 64 69 74 41 73 63 69 69 |value = |ditAscii|
|00001b40| 52 61 64 69 6f 29 3b 0d | 09 09 53 65 74 44 43 74 |Radio);.|..SetDCt|
|00001b50| 6c 42 6f 6f 6c 65 61 6e | 28 6d 6f 64 61 6c 2c 20 |lBoolean|(modal, |
|00001b60| 64 69 74 42 69 6e 61 72 | 79 52 61 64 69 6f 2c 20 |ditBinar|yRadio, |
|00001b70| 76 61 6c 75 65 20 3d 20 | 64 69 74 42 69 6e 61 72 |value = |ditBinar|
|00001b80| 79 52 61 64 69 6f 29 3b | 0d 09 09 53 65 74 44 43 |yRadio);|...SetDC|
|00001b90| 74 6c 42 6f 6f 6c 65 61 | 6e 28 6d 6f 64 61 6c 2c |tlBoolea|n(modal,|
|00001ba0| 20 64 69 74 4d 61 63 69 | 6e 74 6f 73 68 52 61 64 | ditMaci|ntoshRad|
|00001bb0| 69 6f 2c 20 76 61 6c 75 | 65 20 3d 20 64 69 74 4d |io, valu|e = ditM|
|00001bc0| 61 63 69 6e 74 6f 73 68 | 52 61 64 69 6f 29 3b 0d |acintosh|Radio);.|
|00001bd0| 09 65 6e 64 3b 20 28 2a | 20 53 65 74 52 61 64 69 |.end; (*| SetRadi|
|00001be0| 6f 20 2a 29 0d 0d 09 66 | 75 6e 63 74 69 6f 6e 20 |o *)...f|unction |
|00001bf0| 41 64 64 43 68 61 6e 67 | 65 46 69 6c 74 65 72 20 |AddChang|eFilter |
|00001c00| 28 64 6c 67 3a 20 44 69 | 61 6c 6f 67 50 74 72 3b |(dlg: Di|alogPtr;|
|00001c10| 20 76 61 72 20 65 76 65 | 6e 74 3a 20 45 76 65 6e | var eve|nt: Even|
|00001c20| 74 52 65 63 6f 72 64 3b | 20 76 61 72 20 69 74 65 |tRecord;| var ite|
|00001c30| 6d 3a 20 69 6e 74 65 67 | 65 72 29 3a 20 62 6f 6f |m: integ|er): boo|
|00001c40| 6c 65 61 6e 3b 0d 09 09 | 76 61 72 0d 09 09 09 72 |lean;...|var....r|
|00001c50| 65 73 3a 20 62 6f 6f 6c | 65 61 6e 3b 0d 09 09 09 |es: bool|ean;....|
|00001c60| 63 68 3a 20 63 68 61 72 | 3b 0d 09 62 65 67 69 6e |ch: char|;..begin|
|00001c70| 0d 09 09 72 65 73 20 3a | 3d 20 43 61 6e 63 65 6c |...res :|= Cancel|
|00001c80| 4d 6f 64 61 6c 46 69 6c | 74 65 72 28 64 6c 67 2c |ModalFil|ter(dlg,|
|00001c90| 20 65 76 65 6e 74 2c 20 | 69 74 65 6d 29 3b 0d 09 | event, |item);..|
|00001ca0| 09 69 66 20 6e 6f 74 20 | 72 65 73 20 74 68 65 6e |.if not |res then|
|00001cb0| 20 62 65 67 69 6e 0d 09 | 09 09 69 66 20 28 65 76 | begin..|..if (ev|
|00001cc0| 65 6e 74 2e 77 68 61 74 | 20 3d 20 6b 65 79 44 6f |ent.what| = keyDo|
|00001cd0| 77 6e 29 20 61 6e 64 20 | 28 62 61 6e 64 28 65 76 |wn) and |(band(ev|
|00001ce0| 65 6e 74 2e 6d 6f 64 69 | 66 69 65 72 73 2c 20 63 |ent.modi|fiers, c|
|00001cf0| 6d 64 4b 65 79 29 20 3c | 3e 20 30 29 20 74 68 65 |mdKey) <|> 0) the|
|00001d00| 6e 20 62 65 67 69 6e 0d | 09 09 09 09 63 68 20 3a |n begin.|....ch :|
|00001d10| 3d 20 63 68 61 72 28 62 | 61 6e 64 28 65 76 65 6e |= char(b|and(even|
|00001d20| 74 2e 6d 65 73 73 61 67 | 65 2c 20 63 68 61 72 43 |t.messag|e, charC|
|00001d30| 6f 64 65 4d 61 73 6b 29 | 29 3b 0d 09 09 09 09 69 |odeMask)|);.....i|
|00001d40| 66 20 63 68 20 69 6e 20 | 5b 27 31 27 2e 2e 27 33 |f ch in |['1'..'3|
|00001d50| 27 5d 20 74 68 65 6e 20 | 62 65 67 69 6e 0d 09 09 |'] then |begin...|
|00001d60| 09 09 09 53 65 74 52 61 | 64 69 6f 28 64 6c 67 2c |...SetRa|dio(dlg,|
|00001d70| 20 6f 72 64 28 63 68 29 | 20 2d 20 6f 72 64 28 27 | ord(ch)| - ord('|
|00001d80| 31 27 29 20 2b 20 64 69 | 74 41 73 63 69 69 52 61 |1') + di|tAsciiRa|
|00001d90| 64 69 6f 29 3b 0d 09 09 | 09 09 65 6e 64 3b 20 28 |dio);...|..end; (|
|00001da0| 2a 20 69 66 20 2a 29 0d | 09 09 09 65 6e 64 3b 20 |* if *).|...end; |
|00001db0| 28 2a 20 69 66 20 2a 29 | 0d 09 09 65 6e 64 3b 20 |(* if *)|...end; |
|00001dc0| 28 2a 20 69 66 20 2a 29 | 0d 09 09 41 64 64 43 68 |(* if *)|...AddCh|
|00001dd0| 61 6e 67 65 46 69 6c 74 | 65 72 20 3a 3d 20 72 65 |angeFilt|er := re|
|00001de0| 73 3b 0d 09 65 6e 64 3b | 20 28 2a 20 41 64 64 43 |s;..end;| (* AddC|
|00001df0| 68 61 6e 67 65 46 69 6c | 74 65 72 20 2a 29 0d 0d |hangeFil|ter *)..|
|00001e00| 09 66 75 6e 63 74 69 6f | 6e 20 47 65 74 4d 61 70 |.functio|n GetMap|
|00001e10| 45 6e 74 72 69 65 73 52 | 65 73 6f 75 72 63 65 28 |EntriesR|esource(|
|00001e20| 76 61 72 20 65 6e 74 72 | 69 65 73 3a 48 61 6e 64 |var entr|ies:Hand|
|00001e30| 6c 65 29 3a 4f 53 53 74 | 61 74 75 73 3b 0d 09 09 |le):OSSt|atus;...|
|00001e40| 76 61 72 0d 09 09 09 65 | 72 72 3a 4f 53 53 74 61 |var....e|rr:OSSta|
|00001e50| 74 75 73 3b 0d 09 62 65 | 67 69 6e 0d 09 09 55 73 |tus;..be|gin...Us|
|00001e60| 65 52 65 73 46 69 6c 65 | 28 61 70 70 5f 72 65 73 |eResFile|(app_res|
|00001e70| 66 69 6c 65 29 3b 0d 09 | 09 65 6e 74 72 69 65 73 |file);..|.entries|
|00001e80| 20 3a 3d 20 47 65 74 31 | 4e 61 6d 65 64 52 65 73 | := Get1|NamedRes|
|00001e90| 6f 75 72 63 65 28 27 50 | 72 65 66 27 2c 6b 49 43 |ource('P|ref',kIC|
|00001ea0| 4d 61 70 70 69 6e 67 29 | 3b 0d 09 09 65 72 72 20 |Mapping)|;...err |
|00001eb0| 3a 3d 20 52 65 73 45 72 | 72 6f 72 3b 0d 09 09 69 |:= ResEr|ror;...i|
|00001ec0| 66 20 28 65 6e 74 72 69 | 65 73 20 3d 20 6e 69 6c |f (entri|es = nil|
|00001ed0| 29 20 26 20 28 65 72 72 | 20 3d 20 6e 6f 45 72 72 |) & (err| = noErr|
|00001ee0| 29 20 74 68 65 6e 20 62 | 65 67 69 6e 0d 09 09 09 |) then b|egin....|
|00001ef0| 65 72 72 20 3a 3d 20 72 | 65 73 4e 6f 74 46 6f 75 |err := r|esNotFou|
|00001f00| 6e 64 3b 0d 09 09 65 6e | 64 3b 0d 09 09 47 65 74 |nd;...en|d;...Get|
|00001f10| 4d 61 70 45 6e 74 72 69 | 65 73 52 65 73 6f 75 72 |MapEntri|esResour|
|00001f20| 63 65 20 3a 3d 20 65 72 | 72 3b 0d 09 65 6e 64 3b |ce := er|r;..end;|
|00001f30| 0d 09 0d 09 66 75 6e 63 | 74 69 6f 6e 20 44 6f 44 |....func|tion DoD|
|00001f40| 69 61 6c 6f 67 20 28 76 | 61 72 20 65 6e 74 72 79 |ialog (v|ar entry|
|00001f50| 3a 20 49 43 4d 61 70 45 | 6e 74 72 79 29 3a 20 4f |: ICMapE|ntry): O|
|00001f60| 53 45 72 72 3b 0d 0d 09 | 09 66 75 6e 63 74 69 6f |SErr;...|.functio|
|00001f70| 6e 20 4d 61 70 4f 53 54 | 79 70 65 20 28 6f 74 3a |n MapOST|ype (ot:|
|00001f80| 20 4f 53 54 79 70 65 29 | 3a 20 53 74 72 31 35 3b | OSType)|: Str15;|
|00001f90| 0d 09 09 62 65 67 69 6e | 0d 09 09 09 69 66 20 6f |...begin|....if o|
|00001fa0| 74 20 3d 20 4f 53 54 79 | 70 65 28 30 29 20 74 68 |t = OSTy|pe(0) th|
|00001fb0| 65 6e 20 62 65 67 69 6e | 0d 09 09 09 09 4d 61 70 |en begin|.....Map|
|00001fc0| 4f 53 54 79 70 65 20 3a | 3d 20 27 27 3b 0d 09 09 |OSType :|= '';...|
|00001fd0| 09 65 6e 64 20 65 6c 73 | 65 20 62 65 67 69 6e 0d |.end els|e begin.|
|00001fe0| 09 09 09 09 4d 61 70 4f | 53 54 79 70 65 20 3a 3d |....MapO|SType :=|
|00001ff0| 20 4f 53 54 79 70 65 54 | 6f 53 74 72 69 6e 67 28 | OSTypeT|oString(|
|00002000| 6f 74 29 3b 0d 09 09 09 | 65 6e 64 3b 20 28 2a 20 |ot);....|end; (* |
|00002010| 69 66 20 2a 29 0d 09 09 | 65 6e 64 3b 20 28 2a 20 |if *)...|end; (* |
|00002020| 4d 61 70 4f 53 54 79 70 | 65 20 2a 29 0d 0d 09 09 |MapOSTyp|e *)....|
|00002030| 66 75 6e 63 74 69 6f 6e | 20 4d 61 70 53 74 72 20 |function| MapStr |
|00002040| 28 73 3a 20 53 74 72 32 | 35 35 29 3a 20 4f 53 54 |(s: Str2|55): OST|
|00002050| 79 70 65 3b 0d 09 09 62 | 65 67 69 6e 0d 09 09 09 |ype;...b|egin....|
|00002060| 73 20 3a 3d 20 54 50 43 | 6f 70 79 28 63 6f 6e 63 |s := TPC|opy(conc|
|00002070| 61 74 28 73 2c 20 27 20 | 20 20 20 27 29 2c 20 31 |at(s, ' | '), 1|
|00002080| 2c 20 34 29 3b 0d 09 09 | 09 4d 61 70 53 74 72 20 |, 4);...|.MapStr |
|00002090| 3a 3d 20 53 74 72 69 6e | 67 54 6f 4f 53 54 79 70 |:= Strin|gToOSTyp|
|000020a0| 65 28 73 29 3b 0d 09 09 | 65 6e 64 3b 20 28 2a 20 |e(s);...|end; (* |
|000020b0| 4d 61 70 53 74 72 20 2a | 29 0d 0d 09 09 76 61 72 |MapStr *|)....var|
|000020c0| 0d 09 09 09 6d 6f 64 61 | 6c 3a 20 44 69 61 6c 6f |....moda|l: Dialo|
|000020d0| 67 50 74 72 3b 0d 0d 09 | 09 70 72 6f 63 65 64 75 |gPtr;...|.procedu|
|000020e0| 72 65 20 44 6f 43 68 6f | 6f 73 65 45 78 61 6d 70 |re DoCho|oseExamp|
|000020f0| 6c 65 3b 0d 09 09 09 76 | 61 72 0d 09 09 09 09 69 |le;....v|ar.....i|
|00002100| 6e 66 6f 3a 20 46 49 6e | 66 6f 3b 0d 09 09 09 09 |nfo: FIn|fo;.....|
|00002110| 65 72 72 3a 20 4f 53 45 | 72 72 3b 0d 09 09 09 09 |err: OSE|rr;.....|
|00002120| 66 73 2c 20 61 70 70 5f | 66 73 73 3a 20 46 53 53 |fs, app_|fss: FSS|
|00002130| 70 65 63 3b 0d 09 09 62 | 65 67 69 6e 0d 09 09 09 |pec;...b|egin....|
|00002140| 65 72 72 20 3a 3d 20 49 | 43 53 74 61 6e 64 61 72 |err := I|CStandar|
|00002150| 64 47 65 74 46 69 6c 65 | 28 4f 53 54 79 70 65 28 |dGetFile|(OSType(|
|00002160| 30 29 2c 20 66 73 2c 20 | 69 6e 66 6f 29 3b 0d 09 |0), fs, |info);..|
|00002170| 09 09 44 69 73 70 6c 61 | 79 45 72 72 6f 72 28 61 |..Displa|yError(a|
|00002180| 63 47 65 74 45 78 61 6d | 70 6c 65 2c 20 65 72 72 |cGetExam|ple, err|
|00002190| 29 3b 0d 09 09 09 69 66 | 20 65 72 72 20 3d 20 6e |);....if| err = n|
|000021a0| 6f 45 72 72 20 74 68 65 | 6e 20 62 65 67 69 6e 0d |oErr the|n begin.|
|000021b0| 09 09 09 09 53 65 74 49 | 74 65 6d 54 65 78 74 28 |....SetI|temText(|
|000021c0| 6d 6f 64 61 6c 2c 20 64 | 69 74 54 79 70 65 2c 20 |modal, d|itType, |
|000021d0| 4d 61 70 4f 53 54 79 70 | 65 28 69 6e 66 6f 2e 66 |MapOSTyp|e(info.f|
|000021e0| 64 54 79 70 65 29 29 3b | 0d 09 09 09 09 53 65 74 |dType));|.....Set|
|000021f0| 49 74 65 6d 54 65 78 74 | 28 6d 6f 64 61 6c 2c 20 |ItemText|(modal, |
|00002200| 64 69 74 43 72 65 61 74 | 6f 72 2c 20 4d 61 70 4f |ditCreat|or, MapO|
|00002210| 53 54 79 70 65 28 69 6e | 66 6f 2e 66 64 43 72 65 |SType(in|fo.fdCre|
|00002220| 61 74 6f 72 29 29 3b 0d | 09 09 09 09 65 72 72 20 |ator));.|....err |
|00002230| 3a 3d 20 4d 79 47 65 74 | 41 50 50 4c 28 69 6e 66 |:= MyGet|APPL(inf|
|00002240| 6f 2e 66 64 43 72 65 61 | 74 6f 72 2c 20 61 70 70 |o.fdCrea|tor, app|
|00002250| 5f 66 73 73 29 3b 0d 09 | 09 09 09 69 66 20 65 72 |_fss);..|...if er|
|00002260| 72 20 3d 20 6e 6f 45 72 | 72 20 74 68 65 6e 20 62 |r = noEr|r then b|
|00002270| 65 67 69 6e 0d 09 09 09 | 09 09 53 65 74 49 74 65 |egin....|..SetIte|
|00002280| 6d 54 65 78 74 28 6d 6f | 64 61 6c 2c 20 64 69 74 |mText(mo|dal, dit|
|00002290| 41 70 70 6c 69 63 61 74 | 69 6f 6e 4e 61 6d 65 2c |Applicat|ionName,|
|000022a0| 20 61 70 70 5f 66 73 73 | 2e 6e 61 6d 65 29 3b 0d | app_fss|.name);.|
|000022b0| 09 09 09 09 65 6e 64 20 | 65 6c 73 65 20 62 65 67 |....end |else beg|
|000022c0| 69 6e 0d 09 09 09 09 09 | 53 65 74 49 74 65 6d 54 |in......|SetItemT|
|000022d0| 65 78 74 28 6d 6f 64 61 | 6c 2c 20 64 69 74 41 70 |ext(moda|l, ditAp|
|000022e0| 70 6c 69 63 61 74 69 6f | 6e 4e 61 6d 65 2c 20 27 |plicatio|nName, '|
|000022f0| 27 29 3b 0d 09 09 09 09 | 65 6e 64 3b 20 28 2a 20 |');.....|end; (* |
|00002300| 69 66 20 2a 29 0d 09 09 | 09 65 6e 64 3b 20 28 2a |if *)...|.end; (*|
|00002310| 20 69 66 20 2a 29 0d 09 | 09 65 6e 64 3b 20 28 2a | if *)..|.end; (*|
|00002320| 20 44 6f 43 68 6f 6f 73 | 65 45 78 61 6d 70 6c 65 | DoChoos|eExample|
|00002330| 20 2a 29 0d 0d 09 09 66 | 75 6e 63 74 69 6f 6e 20 | *)....f|unction |
|00002340| 43 68 6f 6f 73 65 50 6f | 73 74 3a 20 62 6f 6f 6c |ChoosePo|st: bool|
|00002350| 65 61 6e 3b 0d 09 09 09 | 76 61 72 0d 09 09 09 09 |ean;....|var.....|
|00002360| 69 6e 66 6f 3a 20 46 49 | 6e 66 6f 3b 0d 09 09 09 |info: FI|nfo;....|
|00002370| 09 65 72 72 3a 20 4f 53 | 45 72 72 3b 0d 09 09 09 |.err: OS|Err;....|
|00002380| 09 66 73 3a 20 46 53 53 | 70 65 63 3b 0d 09 09 62 |.fs: FSS|pec;...b|
|00002390| 65 67 69 6e 0d 09 09 09 | 65 72 72 20 3a 3d 20 49 |egin....|err := I|
|000023a0| 43 53 74 61 6e 64 61 72 | 64 47 65 74 46 69 6c 65 |CStandar|dGetFile|
|000023b0| 28 27 41 50 50 4c 27 2c | 20 66 73 2c 20 69 6e 66 |('APPL',| fs, inf|
|000023c0| 6f 29 3b 0d 09 09 09 44 | 69 73 70 6c 61 79 45 72 |o);....D|isplayEr|
|000023d0| 72 6f 72 28 61 63 47 65 | 74 45 78 61 6d 70 6c 65 |ror(acGe|tExample|
|000023e0| 2c 20 65 72 72 29 3b 0d | 09 09 09 69 66 20 65 72 |, err);.|...if er|
|000023f0| 72 20 3d 20 6e 6f 45 72 | 72 20 74 68 65 6e 20 62 |r = noEr|r then b|
|00002400| 65 67 69 6e 0d 09 09 09 | 09 65 6e 74 72 79 2e 70 |egin....|.entry.p|
|00002410| 6f 73 74 5f 63 72 65 61 | 74 6f 72 20 3a 3d 20 69 |ost_crea|tor := i|
|00002420| 6e 66 6f 2e 66 64 43 72 | 65 61 74 6f 72 3b 0d 09 |nfo.fdCr|eator;..|
|00002430| 09 09 09 65 6e 74 72 79 | 2e 70 6f 73 74 5f 61 70 |...entry|.post_ap|
|00002440| 70 5f 6e 61 6d 65 20 3a | 3d 20 66 73 2e 6e 61 6d |p_name :|= fs.nam|
|00002450| 65 3b 0d 09 09 09 65 6e | 64 3b 20 28 2a 20 69 66 |e;....en|d; (* if|
|00002460| 20 2a 29 0d 09 09 09 43 | 68 6f 6f 73 65 50 6f 73 | *)....C|hoosePos|
|00002470| 74 20 3a 3d 20 65 72 72 | 20 3d 20 6e 6f 45 72 72 |t := err| = noErr|
|00002480| 3b 0d 09 09 65 6e 64 3b | 0d 0d 09 09 70 72 6f 63 |;...end;|....proc|
|00002490| 65 64 75 72 65 20 53 65 | 74 50 6f 73 74 49 6e 66 |edure Se|tPostInf|
|000024a0| 6f 3b 0d 09 09 62 65 67 | 69 6e 0d 09 09 09 69 66 |o;...beg|in....if|
|000024b0| 20 65 6e 74 72 79 2e 70 | 6f 73 74 5f 63 72 65 61 | entry.p|ost_crea|
|000024c0| 74 6f 72 20 3c 3e 20 4f | 53 54 79 70 65 28 30 29 |tor <> O|SType(0)|
|000024d0| 20 74 68 65 6e 20 62 65 | 67 69 6e 0d 09 09 09 09 | then be|gin.....|
|000024e0| 53 65 74 44 43 74 6c 54 | 69 74 6c 65 28 6d 6f 64 |SetDCtlT|itle(mod|
|000024f0| 61 6c 2c 20 64 69 74 50 | 6f 73 74 42 75 74 74 6f |al, ditP|ostButto|
|00002500| 6e 2c 20 63 6f 6e 63 61 | 74 28 47 65 74 49 6e 64 |n, conca|t(GetInd|
|00002510| 53 74 72 28 31 32 38 2c | 20 32 34 29 2c 20 65 6e |Str(128,| 24), en|
|00002520| 74 72 79 2e 70 6f 73 74 | 5f 61 70 70 5f 6e 61 6d |try.post|_app_nam|
|00002530| 65 2c 20 47 65 74 49 6e | 64 53 74 72 28 31 32 38 |e, GetIn|dStr(128|
|00002540| 2c 20 32 35 29 29 29 3b | 0d 09 09 09 09 53 65 74 |, 25)));|.....Set|
|00002550| 49 74 65 6d 54 65 78 74 | 28 6d 6f 64 61 6c 2c 20 |ItemText|(modal, |
|00002560| 64 69 74 50 6f 73 74 43 | 72 65 61 74 6f 72 2c 20 |ditPostC|reator, |
|00002570| 4d 61 70 4f 53 54 79 70 | 65 28 65 6e 74 72 79 2e |MapOSTyp|e(entry.|
|00002580| 70 6f 73 74 5f 63 72 65 | 61 74 6f 72 29 29 3b 0d |post_cre|ator));.|
|00002590| 09 09 09 65 6e 64 20 65 | 6c 73 65 20 62 65 67 69 |...end e|lse begi|
|000025a0| 6e 0d 09 09 09 09 53 65 | 74 44 43 74 6c 54 69 74 |n.....Se|tDCtlTit|
|000025b0| 6c 65 28 6d 6f 64 61 6c | 2c 20 64 69 74 50 6f 73 |le(modal|, ditPos|
|000025c0| 74 42 75 74 74 6f 6e 2c | 20 47 65 74 49 6e 64 53 |tButton,| GetIndS|
|000025d0| 74 72 28 31 32 38 2c 20 | 32 33 29 29 3b 0d 09 09 |tr(128, |23));...|
|000025e0| 09 09 53 65 74 49 74 65 | 6d 54 65 78 74 28 6d 6f |..SetIte|mText(mo|
|000025f0| 64 61 6c 2c 20 64 69 74 | 50 6f 73 74 43 72 65 61 |dal, dit|PostCrea|
|00002600| 74 6f 72 2c 20 27 27 29 | 3b 0d 09 09 09 65 6e 64 |tor, '')|;....end|
|00002610| 3b 0d 09 09 09 53 65 74 | 44 43 74 6c 42 6f 6f 6c |;....Set|DCtlBool|
|00002620| 65 61 6e 28 6d 6f 64 61 | 6c 2c 20 64 69 74 50 6f |ean(moda|l, ditPo|
|00002630| 73 74 2c 20 54 50 62 74 | 73 74 28 65 6e 74 72 79 |st, TPbt|st(entry|
|00002640| 2e 66 6c 61 67 73 2c 20 | 49 43 6d 61 70 5f 70 6f |.flags, |ICmap_po|
|00002650| 73 74 5f 62 69 74 29 29 | 3b 0d 09 09 65 6e 64 3b |st_bit))|;...end;|
|00002660| 0d 0d 09 09 70 72 6f 63 | 65 64 75 72 65 20 53 65 |....proc|edure Se|
|00002670| 74 41 6c 6c 54 68 65 53 | 74 75 66 66 3b 0d 09 09 |tAllTheS|tuff;...|
|00002680| 62 65 67 69 6e 0d 09 09 | 09 53 65 74 49 74 65 6d |begin...|.SetItem|
|00002690| 54 65 78 74 28 6d 6f 64 | 61 6c 2c 20 64 69 74 45 |Text(mod|al, ditE|
|000026a0| 6e 74 72 79 4e 61 6d 65 | 2c 20 65 6e 74 72 79 2e |ntryName|, entry.|
|000026b0| 65 6e 74 72 79 5f 6e 61 | 6d 65 29 3b 0d 09 09 09 |entry_na|me);....|
|000026c0| 53 65 74 49 74 65 6d 54 | 65 78 74 28 6d 6f 64 61 |SetItemT|ext(moda|
|000026d0| 6c 2c 20 64 69 74 45 78 | 74 65 6e 73 69 6f 6e 2c |l, ditEx|tension,|
|000026e0| 20 65 6e 74 72 79 2e 65 | 78 74 65 6e 73 69 6f 6e | entry.e|xtension|
|000026f0| 29 3b 0d 09 09 09 53 65 | 74 49 74 65 6d 54 65 78 |);....Se|tItemTex|
|00002700| 74 28 6d 6f 64 61 6c 2c | 20 64 69 74 4d 49 4d 45 |t(modal,| ditMIME|
|00002710| 54 79 70 65 2c 20 65 6e | 74 72 79 2e 4d 49 4d 45 |Type, en|try.MIME|
|00002720| 5f 74 79 70 65 29 3b 0d | 09 09 09 53 65 74 44 43 |_type);.|...SetDC|
|00002730| 74 6c 42 6f 6f 6c 65 61 | 6e 28 6d 6f 64 61 6c 2c |tlBoolea|n(modal,|
|00002740| 20 64 69 74 41 73 63 69 | 69 52 61 64 69 6f 2c 20 | ditAsci|iRadio, |
|00002750| 6e 6f 74 20 54 50 62 74 | 73 74 28 65 6e 74 72 79 |not TPbt|st(entry|
|00002760| 2e 66 6c 61 67 73 2c 20 | 49 43 6d 61 70 5f 62 69 |.flags, |ICmap_bi|
|00002770| 6e 61 72 79 5f 62 69 74 | 29 29 3b 0d 09 09 09 53 |nary_bit|));....S|
|00002780| 65 74 44 43 74 6c 42 6f | 6f 6c 65 61 6e 28 6d 6f |etDCtlBo|olean(mo|
|00002790| 64 61 6c 2c 20 64 69 74 | 42 69 6e 61 72 79 52 61 |dal, dit|BinaryRa|
|000027a0| 64 69 6f 2c 20 54 50 62 | 74 73 74 28 65 6e 74 72 |dio, TPb|tst(entr|
|000027b0| 79 2e 66 6c 61 67 73 2c | 20 49 43 6d 61 70 5f 62 |y.flags,| ICmap_b|
|000027c0| 69 6e 61 72 79 5f 62 69 | 74 29 20 61 6e 64 20 6e |inary_bi|t) and n|
|000027d0| 6f 74 20 28 54 50 62 74 | 73 74 28 65 6e 74 72 79 |ot (TPbt|st(entry|
|000027e0| 2e 66 6c 61 67 73 2c 20 | 49 43 6d 61 70 5f 72 65 |.flags, |ICmap_re|
|000027f0| 73 6f 75 72 63 65 5f 66 | 6f 72 6b 5f 62 69 74 29 |source_f|ork_bit)|
|00002800| 29 29 3b 0d 09 09 09 53 | 65 74 44 43 74 6c 42 6f |));....S|etDCtlBo|
|00002810| 6f 6c 65 61 6e 28 6d 6f | 64 61 6c 2c 20 64 69 74 |olean(mo|dal, dit|
|00002820| 4d 61 63 69 6e 74 6f 73 | 68 52 61 64 69 6f 2c 20 |Macintos|hRadio, |
|00002830| 54 50 62 74 73 74 28 65 | 6e 74 72 79 2e 66 6c 61 |TPbtst(e|ntry.fla|
|00002840| 67 73 2c 20 49 43 6d 61 | 70 5f 62 69 6e 61 72 79 |gs, ICma|p_binary|
|00002850| 5f 62 69 74 29 20 61 6e | 64 20 28 54 50 62 74 73 |_bit) an|d (TPbts|
|00002860| 74 28 65 6e 74 72 79 2e | 66 6c 61 67 73 2c 20 49 |t(entry.|flags, I|
|00002870| 43 6d 61 70 5f 72 65 73 | 6f 75 72 63 65 5f 66 6f |Cmap_res|ource_fo|
|00002880| 72 6b 5f 62 69 74 29 29 | 29 3b 0d 09 09 09 53 65 |rk_bit))|);....Se|
|00002890| 74 44 43 74 6c 42 6f 6f | 6c 65 61 6e 28 6d 6f 64 |tDCtlBoo|lean(mod|
|000028a0| 61 6c 2c 20 64 69 74 4e | 6f 74 46 6f 72 49 6e 63 |al, ditN|otForInc|
|000028b0| 6f 6d 69 6e 67 2c 20 54 | 50 62 74 73 74 28 65 6e |oming, T|Pbtst(en|
|000028c0| 74 72 79 2e 66 6c 61 67 | 73 2c 20 49 43 6d 61 70 |try.flag|s, ICmap|
|000028d0| 5f 6e 6f 74 5f 69 6e 63 | 6f 6d 69 6e 67 5f 62 69 |_not_inc|oming_bi|
|000028e0| 74 29 29 3b 0d 09 09 09 | 53 65 74 44 43 74 6c 42 |t));....|SetDCtlB|
|000028f0| 6f 6f 6c 65 61 6e 28 6d | 6f 64 61 6c 2c 20 64 69 |oolean(m|odal, di|
|00002900| 74 4e 6f 74 46 6f 72 4f | 75 74 67 6f 69 6e 67 2c |tNotForO|utgoing,|
|00002910| 20 54 50 62 74 73 74 28 | 65 6e 74 72 79 2e 66 6c | TPbtst(|entry.fl|
|00002920| 61 67 73 2c 20 49 43 6d | 61 70 5f 6e 6f 74 5f 6f |ags, ICm|ap_not_o|
|00002930| 75 74 67 6f 69 6e 67 5f | 62 69 74 29 29 3b 0d 09 |utgoing_|bit));..|
|00002940| 09 09 53 65 74 49 74 65 | 6d 54 65 78 74 28 6d 6f |..SetIte|mText(mo|
|00002950| 64 61 6c 2c 20 64 69 74 | 54 79 70 65 2c 20 4d 61 |dal, dit|Type, Ma|
|00002960| 70 4f 53 54 79 70 65 28 | 65 6e 74 72 79 2e 66 69 |pOSType(|entry.fi|
|00002970| 6c 65 5f 74 79 70 65 29 | 29 3b 0d 09 09 09 53 65 |le_type)|);....Se|
|00002980| 74 49 74 65 6d 54 65 78 | 74 28 6d 6f 64 61 6c 2c |tItemTex|t(modal,|
|00002990| 20 64 69 74 43 72 65 61 | 74 6f 72 2c 20 4d 61 70 | ditCrea|tor, Map|
|000029a0| 4f 53 54 79 70 65 28 65 | 6e 74 72 79 2e 66 69 6c |OSType(e|ntry.fil|
|000029b0| 65 5f 63 72 65 61 74 6f | 72 29 29 3b 0d 09 09 09 |e_creato|r));....|
|000029c0| 53 65 74 49 74 65 6d 54 | 65 78 74 28 6d 6f 64 61 |SetItemT|ext(moda|
|000029d0| 6c 2c 20 64 69 74 41 70 | 70 6c 69 63 61 74 69 6f |l, ditAp|plicatio|
|000029e0| 6e 4e 61 6d 65 2c 20 65 | 6e 74 72 79 2e 63 72 65 |nName, e|ntry.cre|
|000029f0| 61 74 6f 72 5f 61 70 70 | 5f 6e 61 6d 65 29 3b 0d |ator_app|_name);.|
|00002a00| 09 09 09 53 65 74 50 6f | 73 74 49 6e 66 6f 3b 0d |...SetPo|stInfo;.|
|00002a10| 09 09 09 53 65 6c 65 63 | 74 44 69 61 6c 6f 67 49 |...Selec|tDialogI|
|00002a20| 74 65 6d 54 65 78 74 28 | 6d 6f 64 61 6c 2c 20 64 |temText(|modal, d|
|00002a30| 69 74 45 6e 74 72 79 4e | 61 6d 65 2c 20 30 2c 20 |itEntryN|ame, 0, |
|00002a40| 33 32 37 36 37 29 3b 0d | 09 09 65 6e 64 3b 0d 09 |32767);.|..end;..|
|00002a50| 09 0d 09 09 70 72 6f 63 | 65 64 75 72 65 20 53 65 |....proc|edure Se|
|00002a60| 74 41 64 64 45 64 69 74 | 44 65 66 61 75 6c 74 73 |tAddEdit|Defaults|
|00002a70| 3b 0d 09 09 09 76 61 72 | 0d 09 09 09 09 65 72 72 |;....var|.....err|
|00002a80| 3a 4f 53 53 74 61 74 75 | 73 3b 0d 09 09 09 09 65 |:OSStatu|s;.....e|
|00002a90| 78 74 3a 53 74 72 32 35 | 35 3b 0d 09 09 09 09 65 |xt:Str25|5;.....e|
|00002aa0| 6e 74 72 69 65 73 3a 48 | 61 6e 64 6c 65 3b 0d 09 |ntries:H|andle;..|
|00002ab0| 09 09 09 6e 65 77 5f 65 | 6e 74 72 79 3a 20 49 43 |...new_e|ntry: IC|
|00002ac0| 4d 61 70 45 6e 74 72 79 | 3b 0d 09 09 09 09 61 3a |MapEntry|;.....a:|
|00002ad0| 20 69 6e 74 65 67 65 72 | 3b 0d 09 09 62 65 67 69 | integer|;...begi|
|00002ae0| 6e 0d 09 09 09 47 65 74 | 49 74 65 6d 54 65 78 74 |n....Get|ItemText|
|00002af0| 28 6d 6f 64 61 6c 2c 20 | 64 69 74 45 78 74 65 6e |(modal, |ditExten|
|00002b00| 73 69 6f 6e 2c 20 65 78 | 74 29 3b 0d 09 09 09 65 |sion, ex|t);....e|
|00002b10| 72 72 20 3a 3d 20 47 65 | 74 4d 61 70 45 6e 74 72 |rr := Ge|tMapEntr|
|00002b20| 69 65 73 52 65 73 6f 75 | 72 63 65 28 65 6e 74 72 |iesResou|rce(entr|
|00002b30| 69 65 73 29 3b 0d 09 09 | 09 69 66 20 65 72 72 20 |ies);...|.if err |
|00002b40| 3d 20 6e 6f 45 72 72 20 | 74 68 65 6e 20 62 65 67 |= noErr |then beg|
|00002b50| 69 6e 0d 09 09 09 09 65 | 72 72 20 3a 3d 20 49 43 |in.....e|rr := IC|
|00002b60| 4d 61 70 45 6e 74 72 69 | 65 73 46 69 6c 65 6e 61 |MapEntri|esFilena|
|00002b70| 6d 65 20 28 47 65 74 49 | 6e 73 74 61 6e 63 65 2c |me (GetI|nstance,|
|00002b80| 20 65 6e 74 72 69 65 73 | 2c 20 65 78 74 2c 20 6e | entries|, ext, n|
|00002b90| 65 77 5f 65 6e 74 72 79 | 29 3b 0d 09 09 09 65 6e |ew_entry|);....en|
|00002ba0| 64 3b 0d 09 09 09 69 66 | 20 65 72 72 20 3d 20 6e |d;....if| err = n|
|00002bb0| 6f 45 72 72 20 74 68 65 | 6e 20 62 65 67 69 6e 0d |oErr the|n begin.|
|00002bc0| 09 09 09 09 65 6e 74 72 | 79 20 3a 3d 20 6e 65 77 |....entr|y := new|
|00002bd0| 5f 65 6e 74 72 79 3b 0d | 09 09 09 09 53 65 74 41 |_entry;.|....SetA|
|00002be0| 6c 6c 54 68 65 53 74 75 | 66 66 3b 0d 09 09 09 65 |llTheStu|ff;....e|
|00002bf0| 6e 64 3b 0d 09 09 09 69 | 66 20 65 72 72 20 3d 20 |nd;....i|f err = |
|00002c00| 69 63 50 72 65 66 4e 6f | 74 46 6f 75 6e 64 45 72 |icPrefNo|tFoundEr|
|00002c10| 72 20 74 68 65 6e 20 62 | 65 67 69 6e 0d 09 09 09 |r then b|egin....|
|00002c20| 09 50 61 72 61 6d 54 65 | 78 74 28 27 27 2c 20 65 |.ParamTe|xt('', e|
|00002c30| 78 74 2c 20 27 27 2c 20 | 27 27 29 3b 0d 09 09 09 |xt, '', |'');....|
|00002c40| 09 61 20 3a 3d 20 53 74 | 6f 70 41 6c 65 72 74 28 |.a := St|opAlert(|
|00002c50| 31 36 36 2c 20 40 4f 4b | 4d 6f 64 61 6c 46 69 6c |166, @OK|ModalFil|
|00002c60| 74 65 72 29 3b 0d 09 09 | 09 65 6e 64 20 65 6c 73 |ter);...|.end els|
|00002c70| 65 20 62 65 67 69 6e 0d | 09 09 09 09 44 69 73 70 |e begin.|....Disp|
|00002c80| 6c 61 79 45 72 72 6f 72 | 28 61 63 53 65 74 44 65 |layError|(acSetDe|
|00002c90| 66 61 75 6c 74 73 2c 20 | 65 72 72 29 3b 0d 09 09 |faults, |err);...|
|00002ca0| 09 65 6e 64 3b 0d 09 09 | 65 6e 64 3b 0d 09 09 0d |.end;...|end;....|
|00002cb0| 09 09 76 61 72 0d 09 09 | 09 65 72 72 3a 20 4f 53 |..var...|.err: OS|
|00002cc0| 45 72 72 3b 0d 09 09 09 | 69 74 65 6d 3a 20 69 6e |Err;....|item: in|
|00002cd0| 74 65 67 65 72 3b 0d 09 | 09 09 66 6c 61 67 73 3a |teger;..|..flags:|
|00002ce0| 20 6c 6f 6e 67 69 6e 74 | 3b 0d 09 09 09 74 6d 70 | longint|;....tmp|
|00002cf0| 73 74 72 3a 20 53 74 72 | 32 35 35 3b 0d 09 09 09 |str: Str|255;....|
|00002d00| 64 75 6d 6d 79 3a 20 62 | 6f 6f 6c 65 61 6e 3b 0d |dummy: b|oolean;.|
|00002d10| 09 09 09 73 61 76 65 64 | 5f 73 74 61 74 65 3a 20 |...saved|_state: |
|00002d20| 50 74 72 3b 0d 09 62 65 | 67 69 6e 0d 09 09 65 72 |Ptr;..be|gin...er|
|00002d30| 72 20 3a 3d 20 6e 6f 45 | 72 72 3b 0d 09 09 6d 6f |r := noE|rr;...mo|
|00002d40| 64 61 6c 20 3a 3d 20 47 | 65 74 4e 65 77 44 69 61 |dal := G|etNewDia|
|00002d50| 6c 6f 67 28 38 30 30 2c | 20 6e 69 6c 2c 20 57 69 |log(800,| nil, Wi|
|00002d60| 6e 64 6f 77 50 74 72 28 | 2d 31 29 29 3b 0d 09 09 |ndowPtr(|-1));...|
|00002d70| 69 66 20 6d 6f 64 61 6c | 20 3d 20 6e 69 6c 20 74 |if modal| = nil t|
|00002d80| 68 65 6e 20 62 65 67 69 | 6e 0d 09 09 09 65 72 72 |hen begi|n....err|
|00002d90| 20 3a 3d 20 6d 65 6d 46 | 75 6c 6c 45 72 72 3b 0d | := memF|ullErr;.|
|00002da0| 09 09 65 6e 64 3b 20 28 | 2a 20 69 66 20 2a 29 0d |..end; (|* if *).|
|00002db0| 09 09 69 66 20 65 72 72 | 20 3d 20 6e 6f 45 72 72 |..if err| = noErr|
|00002dc0| 20 74 68 65 6e 20 62 65 | 67 69 6e 0d 09 09 09 53 | then be|gin....S|
|00002dd0| 65 74 55 70 44 65 66 61 | 75 6c 74 4f 75 74 6c 69 |etUpDefa|ultOutli|
|00002de0| 6e 65 28 6d 6f 64 61 6c | 2c 20 64 69 74 4f 4b 2c |ne(modal|, ditOK,|
|00002df0| 20 64 69 74 45 64 69 74 | 6f 72 55 73 65 72 49 74 | ditEdit|orUserIt|
|00002e00| 65 6d 29 3b 0d 09 09 09 | 53 65 74 41 6c 6c 54 68 |em);....|SetAllTh|
|00002e10| 65 53 74 75 66 66 3b 0d | 09 09 09 0d 09 09 09 53 |eStuff;.|.......S|
|00002e20| 68 6f 77 57 69 6e 64 6f | 77 28 6d 6f 64 61 6c 29 |howWindo|w(modal)|
|00002e30| 3b 0d 09 09 09 44 69 73 | 61 62 6c 65 4d 65 6e 75 |;....Dis|ableMenu|
|00002e40| 42 61 72 28 73 61 76 65 | 64 5f 73 74 61 74 65 2c |Bar(save|d_state,|
|00002e50| 20 2d 31 29 3b 0d 09 09 | 09 49 6e 69 74 43 75 72 | -1);...|.InitCur|
|00002e60| 73 6f 72 3b 0d 09 09 09 | 72 65 70 65 61 74 0d 09 |sor;....|repeat..|
|00002e70| 09 09 09 4d 6f 76 61 62 | 6c 65 4d 6f 64 61 6c 44 |...Movab|leModalD|
|00002e80| 69 61 6c 6f 67 28 40 41 | 64 64 43 68 61 6e 67 65 |ialog(@A|ddChange|
|00002e90| 46 69 6c 74 65 72 2c 20 | 69 74 65 6d 29 3b 0d 09 |Filter, |item);..|
|00002ea0| 09 09 09 63 61 73 65 20 | 69 74 65 6d 20 6f 66 0d |...case |item of.|
|00002eb0| 09 09 09 09 09 64 69 74 | 41 73 63 69 69 52 61 64 |.....dit|AsciiRad|
|00002ec0| 69 6f 2e 2e 64 69 74 4d | 61 63 69 6e 74 6f 73 68 |io..ditM|acintosh|
|00002ed0| 52 61 64 69 6f 3a 20 20 | 62 65 67 69 6e 0d 09 09 |Radio: |begin...|
|00002ee0| 09 09 09 09 53 65 74 52 | 61 64 69 6f 28 6d 6f 64 |....SetR|adio(mod|
|00002ef0| 61 6c 2c 20 69 74 65 6d | 29 3b 0d 09 09 09 09 09 |al, item|);......|
|00002f00| 65 6e 64 3b 0d 09 09 09 | 09 09 64 69 74 4e 6f 74 |end;....|..ditNot|
|00002f10| 46 6f 72 49 6e 63 6f 6d | 69 6e 67 2e 2e 64 69 74 |ForIncom|ing..dit|
|00002f20| 4e 6f 74 46 6f 72 4f 75 | 74 67 6f 69 6e 67 3a 20 |NotForOu|tgoing: |
|00002f30| 20 62 65 67 69 6e 0d 09 | 09 09 09 09 09 54 6f 67 | begin..|.....Tog|
|00002f40| 67 6c 65 44 43 74 6c 42 | 6f 6f 6c 65 61 6e 28 6d |gleDCtlB|oolean(m|
|00002f50| 6f 64 61 6c 2c 20 69 74 | 65 6d 29 3b 0d 09 09 09 |odal, it|em);....|
|00002f60| 09 09 65 6e 64 3b 0d 09 | 09 09 09 09 64 69 74 43 |..end;..|....ditC|
|00002f70| 68 6f 6f 73 65 45 78 61 | 6d 70 6c 65 3a 20 20 62 |hooseExa|mple: b|
|00002f80| 65 67 69 6e 0d 09 09 09 | 09 09 09 44 6f 43 68 6f |egin....|...DoCho|
|00002f90| 6f 73 65 45 78 61 6d 70 | 6c 65 3b 0d 09 09 09 09 |oseExamp|le;.....|
|00002fa0| 09 65 6e 64 3b 0d 09 09 | 09 09 09 64 69 74 50 6f |.end;...|...ditPo|
|00002fb0| 73 74 3a 20 20 62 65 67 | 69 6e 0d 09 09 09 09 09 |st: beg|in......|
|00002fc0| 09 69 66 20 6e 6f 74 20 | 54 50 62 74 73 74 28 65 |.if not |TPbtst(e|
|00002fd0| 6e 74 72 79 2e 66 6c 61 | 67 73 2c 20 49 43 6d 61 |ntry.fla|gs, ICma|
|00002fe0| 70 5f 70 6f 73 74 5f 62 | 69 74 29 20 74 68 65 6e |p_post_b|it) then|
|00002ff0| 20 62 65 67 69 6e 0d 09 | 09 09 09 09 09 09 69 66 | begin..|......if|
|00003000| 20 28 65 6e 74 72 79 2e | 70 6f 73 74 5f 63 72 65 | (entry.|post_cre|
|00003010| 61 74 6f 72 20 3d 20 4f | 53 54 79 70 65 28 30 29 |ator = O|SType(0)|
|00003020| 29 20 74 68 65 6e 20 62 | 65 67 69 6e 0d 09 09 09 |) then b|egin....|
|00003030| 09 09 09 09 09 69 66 20 | 65 6e 74 72 79 2e 66 69 |.....if |entry.fi|
|00003040| 6c 65 5f 63 72 65 61 74 | 6f 72 20 3c 3e 20 4f 53 |le_creat|or <> OS|
|00003050| 54 79 70 65 28 30 29 20 | 74 68 65 6e 20 62 65 67 |Type(0) |then beg|
|00003060| 69 6e 0d 09 09 09 09 09 | 09 09 09 09 65 6e 74 72 |in......|....entr|
|00003070| 79 2e 70 6f 73 74 5f 63 | 72 65 61 74 6f 72 20 3a |y.post_c|reator :|
|00003080| 3d 20 65 6e 74 72 79 2e | 66 69 6c 65 5f 63 72 65 |= entry.|file_cre|
|00003090| 61 74 6f 72 3b 0d 09 09 | 09 09 09 09 09 09 09 65 |ator;...|.......e|
|000030a0| 6e 74 72 79 2e 70 6f 73 | 74 5f 61 70 70 5f 6e 61 |ntry.pos|t_app_na|
|000030b0| 6d 65 20 3a 3d 20 65 6e | 74 72 79 2e 63 72 65 61 |me := en|try.crea|
|000030c0| 74 6f 72 5f 61 70 70 5f | 6e 61 6d 65 3b 0d 09 09 |tor_app_|name;...|
|000030d0| 09 09 09 09 09 09 65 6e | 64 20 65 6c 73 65 20 62 |......en|d else b|
|000030e0| 65 67 69 6e 0d 09 09 09 | 09 09 09 09 09 09 64 75 |egin....|......du|
|000030f0| 6d 6d 79 20 3a 3d 20 43 | 68 6f 6f 73 65 50 6f 73 |mmy := C|hoosePos|
|00003100| 74 3b 0d 09 09 09 09 09 | 09 09 09 65 6e 64 3b 0d |t;......|...end;.|
|00003110| 09 09 09 09 09 09 09 65 | 6e 64 3b 0d 09 09 09 09 |.......e|nd;.....|
|00003120| 09 09 09 69 66 20 65 6e | 74 72 79 2e 70 6f 73 74 |...if en|try.post|
|00003130| 5f 63 72 65 61 74 6f 72 | 20 3c 3e 20 4f 53 54 79 |_creator| <> OSTy|
|00003140| 70 65 28 30 29 20 74 68 | 65 6e 20 62 65 67 69 6e |pe(0) th|en begin|
|00003150| 0d 09 09 09 09 09 09 09 | 09 62 73 65 74 28 65 6e |........|.bset(en|
|00003160| 74 72 79 2e 66 6c 61 67 | 73 2c 20 49 43 6d 61 70 |try.flag|s, ICmap|
|00003170| 5f 70 6f 73 74 5f 62 69 | 74 29 3b 0d 09 09 09 09 |_post_bi|t);.....|
|00003180| 09 09 09 65 6e 64 3b 0d | 09 09 09 09 09 09 65 6e |...end;.|......en|
|00003190| 64 20 65 6c 73 65 20 62 | 65 67 69 6e 0d 09 09 09 |d else b|egin....|
|000031a0| 09 09 09 09 62 63 6c 72 | 28 65 6e 74 72 79 2e 66 |....bclr|(entry.f|
|000031b0| 6c 61 67 73 2c 20 49 43 | 6d 61 70 5f 70 6f 73 74 |lags, IC|map_post|
|000031c0| 5f 62 69 74 29 3b 0d 09 | 09 09 09 09 09 65 6e 64 |_bit);..|.....end|
|000031d0| 3b 0d 09 09 09 09 09 09 | 53 65 74 50 6f 73 74 49 |;.......|SetPostI|
|000031e0| 6e 66 6f 3b 0d 09 09 09 | 09 09 65 6e 64 3b 0d 09 |nfo;....|..end;..|
|000031f0| 09 09 09 09 64 69 74 50 | 6f 73 74 42 75 74 74 6f |....ditP|ostButto|
|00003200| 6e 3a 20 20 62 65 67 69 | 6e 0d 09 09 09 09 09 09 |n: begi|n.......|
|00003210| 69 66 20 43 68 6f 6f 73 | 65 50 6f 73 74 20 74 68 |if Choos|ePost th|
|00003220| 65 6e 20 62 65 67 69 6e | 0d 09 09 09 09 09 09 09 |en begin|........|
|00003230| 62 73 65 74 28 65 6e 74 | 72 79 2e 66 6c 61 67 73 |bset(ent|ry.flags|
|00003240| 2c 20 49 43 6d 61 70 5f | 70 6f 73 74 5f 62 69 74 |, ICmap_|post_bit|
|00003250| 29 3b 0d 09 09 09 09 09 | 09 65 6e 64 3b 0d 09 09 |);......|.end;...|
|00003260| 09 09 09 09 53 65 74 50 | 6f 73 74 49 6e 66 6f 3b |....SetP|ostInfo;|
|00003270| 0d 09 09 09 09 09 65 6e | 64 3b 0d 09 09 09 09 09 |......en|d;......|
|00003280| 64 69 74 41 64 64 45 64 | 69 74 44 65 66 61 75 6c |ditAddEd|itDefaul|
|00003290| 74 73 3a 20 62 65 67 69 | 6e 0d 09 09 09 09 09 09 |ts: begi|n.......|
|000032a0| 53 65 74 41 64 64 45 64 | 69 74 44 65 66 61 75 6c |SetAddEd|itDefaul|
|000032b0| 74 73 3b 0d 09 09 09 09 | 09 65 6e 64 3b 0d 09 09 |ts;.....|.end;...|
|000032c0| 09 09 09 6f 74 68 65 72 | 77 69 73 65 0d 09 09 09 |...other|wise....|
|000032d0| 09 09 09 3b 0d 09 09 09 | 09 65 6e 64 3b 20 28 2a |...;....|.end; (*|
|000032e0| 20 63 61 73 65 20 2a 29 | 0d 09 09 09 75 6e 74 69 | case *)|....unti|
|000032f0| 6c 20 69 74 65 6d 20 69 | 6e 20 5b 64 69 74 4f 4b |l item i|n [ditOK|
|00003300| 2c 20 64 69 74 43 61 6e | 63 65 6c 5d 3b 0d 09 09 |, ditCan|cel];...|
|00003310| 09 69 66 20 69 74 65 6d | 20 3d 20 64 69 74 4f 4b |.if item| = ditOK|
|00003320| 20 74 68 65 6e 20 62 65 | 67 69 6e 0d 09 09 09 09 | then be|gin.....|
|00003330| 47 65 74 49 74 65 6d 54 | 65 78 74 28 6d 6f 64 61 |GetItemT|ext(moda|
|00003340| 6c 2c 20 64 69 74 45 6e | 74 72 79 4e 61 6d 65 2c |l, ditEn|tryName,|
|00003350| 20 65 6e 74 72 79 2e 65 | 6e 74 72 79 5f 6e 61 6d | entry.e|ntry_nam|
|00003360| 65 29 3b 0d 09 09 09 09 | 47 65 74 49 74 65 6d 54 |e);.....|GetItemT|
|00003370| 65 78 74 28 6d 6f 64 61 | 6c 2c 20 64 69 74 45 78 |ext(moda|l, ditEx|
|00003380| 74 65 6e 73 69 6f 6e 2c | 20 65 6e 74 72 79 2e 65 |tension,| entry.e|
|00003390| 78 74 65 6e 73 69 6f 6e | 29 3b 0d 09 09 09 09 47 |xtension|);.....G|
|000033a0| 65 74 49 74 65 6d 54 65 | 78 74 28 6d 6f 64 61 6c |etItemTe|xt(modal|
|000033b0| 2c 20 64 69 74 4d 49 4d | 45 54 79 70 65 2c 20 65 |, ditMIM|EType, e|
|000033c0| 6e 74 72 79 2e 4d 49 4d | 45 5f 74 79 70 65 29 3b |ntry.MIM|E_type);|
|000033d0| 0d 0d 09 09 09 09 66 6c | 61 67 73 20 3a 3d 20 62 |......fl|ags := b|
|000033e0| 61 6e 64 28 65 6e 74 72 | 79 2e 66 6c 61 67 73 2c |and(entr|y.flags,|
|000033f0| 20 42 4e 4f 54 28 49 43 | 6d 61 70 5f 62 69 6e 61 | BNOT(IC|map_bina|
|00003400| 72 79 5f 6d 61 73 6b 20 | 2b 20 49 43 6d 61 70 5f |ry_mask |+ ICmap_|
|00003410| 64 61 74 61 5f 66 6f 72 | 6b 5f 6d 61 73 6b 20 2b |data_for|k_mask +|
|00003420| 20 49 43 6d 61 70 5f 72 | 65 73 6f 75 72 63 65 5f | ICmap_r|esource_|
|00003430| 66 6f 72 6b 5f 6d 61 73 | 6b 20 2b 20 49 43 6d 61 |fork_mas|k + ICma|
|00003440| 70 5f 6e 6f 74 5f 69 6e | 63 6f 6d 69 6e 67 5f 6d |p_not_in|coming_m|
|00003450| 61 73 6b 20 2b 20 49 43 | 6d 61 70 5f 6e 6f 74 5f |ask + IC|map_not_|
|00003460| 6f 75 74 67 6f 69 6e 67 | 5f 6d 61 73 6b 29 29 3b |outgoing|_mask));|
|00003470| 0d 09 09 09 09 66 6c 61 | 67 73 20 3a 3d 20 66 6c |.....fla|gs := fl|
|00003480| 61 67 73 20 2b 20 49 43 | 6d 61 70 5f 64 61 74 61 |ags + IC|map_data|
|00003490| 5f 66 6f 72 6b 5f 6d 61 | 73 6b 3b 0d 09 09 09 09 |_fork_ma|sk;.....|
|000034a0| 69 66 20 6e 6f 74 20 47 | 65 74 44 43 74 6c 42 6f |if not G|etDCtlBo|
|000034b0| 6f 6c 65 61 6e 28 6d 6f | 64 61 6c 2c 20 64 69 74 |olean(mo|dal, dit|
|000034c0| 41 73 63 69 69 52 61 64 | 69 6f 29 20 74 68 65 6e |AsciiRad|io) then|
|000034d0| 20 62 65 67 69 6e 0d 09 | 09 09 09 09 66 6c 61 67 | begin..|....flag|
|000034e0| 73 20 3a 3d 20 66 6c 61 | 67 73 20 2b 20 49 43 6d |s := fla|gs + ICm|
|000034f0| 61 70 5f 62 69 6e 61 72 | 79 5f 6d 61 73 6b 3b 0d |ap_binar|y_mask;.|
|00003500| 09 09 09 09 65 6e 64 3b | 20 28 2a 20 69 66 20 2a |....end;| (* if *|
|00003510| 29 0d 09 09 09 09 69 66 | 20 47 65 74 44 43 74 6c |).....if| GetDCtl|
|00003520| 42 6f 6f 6c 65 61 6e 28 | 6d 6f 64 61 6c 2c 20 64 |Boolean(|modal, d|
|00003530| 69 74 4d 61 63 69 6e 74 | 6f 73 68 52 61 64 69 6f |itMacint|oshRadio|
|00003540| 29 20 74 68 65 6e 20 62 | 65 67 69 6e 0d 09 09 09 |) then b|egin....|
|00003550| 09 09 66 6c 61 67 73 20 | 3a 3d 20 66 6c 61 67 73 |..flags |:= flags|
|00003560| 20 2b 20 49 43 6d 61 70 | 5f 72 65 73 6f 75 72 63 | + ICmap|_resourc|
|00003570| 65 5f 66 6f 72 6b 5f 6d | 61 73 6b 3b 0d 09 09 09 |e_fork_m|ask;....|
|00003580| 09 65 6e 64 3b 20 28 2a | 20 69 66 20 2a 29 0d 09 |.end; (*| if *)..|
|00003590| 09 09 09 69 66 20 47 65 | 74 44 43 74 6c 42 6f 6f |...if Ge|tDCtlBoo|
|000035a0| 6c 65 61 6e 28 6d 6f 64 | 61 6c 2c 20 64 69 74 4e |lean(mod|al, ditN|
|000035b0| 6f 74 46 6f 72 49 6e 63 | 6f 6d 69 6e 67 29 20 74 |otForInc|oming) t|
|000035c0| 68 65 6e 20 62 65 67 69 | 6e 0d 09 09 09 09 09 66 |hen begi|n......f|
|000035d0| 6c 61 67 73 20 3a 3d 20 | 66 6c 61 67 73 20 2b 20 |lags := |flags + |
|000035e0| 49 43 6d 61 70 5f 6e 6f | 74 5f 69 6e 63 6f 6d 69 |ICmap_no|t_incomi|
|000035f0| 6e 67 5f 6d 61 73 6b 3b | 0d 09 09 09 09 65 6e 64 |ng_mask;|.....end|
|00003600| 3b 20 28 2a 20 69 66 20 | 2a 29 0d 09 09 09 09 69 |; (* if |*).....i|
|00003610| 66 20 47 65 74 44 43 74 | 6c 42 6f 6f 6c 65 61 6e |f GetDCt|lBoolean|
|00003620| 28 6d 6f 64 61 6c 2c 20 | 64 69 74 4e 6f 74 46 6f |(modal, |ditNotFo|
|00003630| 72 4f 75 74 67 6f 69 6e | 67 29 20 74 68 65 6e 20 |rOutgoin|g) then |
|00003640| 62 65 67 69 6e 0d 09 09 | 09 09 09 66 6c 61 67 73 |begin...|...flags|
|00003650| 20 3a 3d 20 66 6c 61 67 | 73 20 2b 20 49 43 6d 61 | := flag|s + ICma|
|00003660| 70 5f 6e 6f 74 5f 6f 75 | 74 67 6f 69 6e 67 5f 6d |p_not_ou|tgoing_m|
|00003670| 61 73 6b 3b 0d 09 09 09 | 09 65 6e 64 3b 20 28 2a |ask;....|.end; (*|
|00003680| 20 69 66 20 2a 29 0d 09 | 09 09 09 65 6e 74 72 79 | if *)..|...entry|
|00003690| 2e 66 6c 61 67 73 20 3a | 3d 20 66 6c 61 67 73 3b |.flags :|= flags;|
|000036a0| 0d 0d 09 09 09 09 47 65 | 74 49 74 65 6d 54 65 78 |......Ge|tItemTex|
|000036b0| 74 28 6d 6f 64 61 6c 2c | 20 64 69 74 54 79 70 65 |t(modal,| ditType|
|000036c0| 2c 20 74 6d 70 73 74 72 | 29 3b 0d 09 09 09 09 65 |, tmpstr|);.....e|
|000036d0| 6e 74 72 79 2e 66 69 6c | 65 5f 74 79 70 65 20 3a |ntry.fil|e_type :|
|000036e0| 3d 20 4d 61 70 53 74 72 | 28 74 6d 70 73 74 72 29 |= MapStr|(tmpstr)|
|000036f0| 3b 0d 09 09 09 09 47 65 | 74 49 74 65 6d 54 65 78 |;.....Ge|tItemTex|
|00003700| 74 28 6d 6f 64 61 6c 2c | 20 64 69 74 43 72 65 61 |t(modal,| ditCrea|
|00003710| 74 6f 72 2c 20 74 6d 70 | 73 74 72 29 3b 0d 09 09 |tor, tmp|str);...|
|00003720| 09 09 65 6e 74 72 79 2e | 66 69 6c 65 5f 63 72 65 |..entry.|file_cre|
|00003730| 61 74 6f 72 20 3a 3d 20 | 4d 61 70 53 74 72 28 74 |ator := |MapStr(t|
|00003740| 6d 70 73 74 72 29 3b 0d | 09 09 09 09 47 65 74 49 |mpstr);.|....GetI|
|00003750| 74 65 6d 54 65 78 74 28 | 6d 6f 64 61 6c 2c 20 64 |temText(|modal, d|
|00003760| 69 74 41 70 70 6c 69 63 | 61 74 69 6f 6e 4e 61 6d |itApplic|ationNam|
|00003770| 65 2c 20 65 6e 74 72 79 | 2e 63 72 65 61 74 6f 72 |e, entry|.creator|
|00003780| 5f 61 70 70 5f 6e 61 6d | 65 29 3b 0d 09 09 09 65 |_app_nam|e);....e|
|00003790| 6e 64 20 65 6c 73 65 20 | 62 65 67 69 6e 0d 09 09 |nd else |begin...|
|000037a0| 09 09 65 72 72 20 3a 3d | 20 75 73 65 72 43 61 6e |..err :=| userCan|
|000037b0| 63 65 6c 65 64 45 72 72 | 3b 0d 09 09 09 65 6e 64 |celedErr|;....end|
|000037c0| 3b 20 28 2a 20 69 66 20 | 2a 29 0d 09 09 65 6e 64 |; (* if |*)...end|
|000037d0| 3b 20 28 2a 20 69 66 20 | 2a 29 0d 09 09 69 66 20 |; (* if |*)...if |
|000037e0| 6d 6f 64 61 6c 20 3c 3e | 20 6e 69 6c 20 74 68 65 |modal <>| nil the|
|000037f0| 6e 20 62 65 67 69 6e 0d | 09 09 09 52 65 45 6e 61 |n begin.|...ReEna|
|00003800| 62 6c 65 4d 65 6e 75 42 | 61 72 28 73 61 76 65 64 |bleMenuB|ar(saved|
|00003810| 5f 73 74 61 74 65 29 3b | 0d 09 09 09 44 69 73 70 |_state);|....Disp|
|00003820| 6f 73 65 44 69 61 6c 6f | 67 28 6d 6f 64 61 6c 29 |oseDialo|g(modal)|
|00003830| 3b 0d 09 09 65 6e 64 3b | 20 28 2a 20 69 66 20 2a |;...end;| (* if *|
|00003840| 29 0d 09 09 44 6f 44 69 | 61 6c 6f 67 20 3a 3d 20 |)...DoDi|alog := |
|00003850| 65 72 72 3b 0d 09 65 6e | 64 3b 20 28 2a 20 44 6f |err;..en|d; (* Do|
|00003860| 44 69 61 6c 6f 67 20 2a | 29 0d 0d 09 66 75 6e 63 |Dialog *|)...func|
|00003870| 74 69 6f 6e 20 44 6f 41 | 64 64 43 68 61 6e 67 65 |tion DoA|ddChange|
|00003880| 20 28 73 65 6c 65 63 74 | 69 6f 6e 3a 20 69 6e 74 | (select|ion: int|
|00003890| 65 67 65 72 3b 20 76 61 | 72 20 65 6e 74 72 79 3a |eger; va|r entry:|
|000038a0| 20 49 43 4d 61 70 45 6e | 74 72 79 3b 20 65 6e 74 | ICMapEn|try; ent|
|000038b0| 72 69 65 73 3a 20 48 61 | 6e 64 6c 65 3b 20 6c 68 |ries: Ha|ndle; lh|
|000038c0| 3a 20 4c 69 73 74 48 61 | 6e 64 6c 65 29 3a 20 4f |: ListHa|ndle): O|
|000038d0| 53 45 72 72 3b 0d 09 09 | 76 61 72 0d 09 09 09 6a |SErr;...|var....j|
|000038e0| 75 6e 6b 69 6e 74 3a 20 | 69 6e 74 65 67 65 72 3b |unkint: |integer;|
|000038f0| 0d 09 09 09 65 72 72 3a | 20 4f 53 45 72 72 3b 0d |....err:| OSErr;.|
|00003900| 09 09 09 70 6f 73 3a 20 | 6c 6f 6e 67 69 6e 74 3b |...pos: |longint;|
|00003910| 0d 09 62 65 67 69 6e 0d | 09 09 69 66 20 73 65 6c |..begin.|..if sel|
|00003920| 65 63 74 69 6f 6e 20 3d | 20 2d 31 20 74 68 65 6e |ection =| -1 then|
|00003930| 20 62 65 67 69 6e 0d 09 | 09 09 77 69 74 68 20 65 | begin..|..with e|
|00003940| 6e 74 72 79 20 64 6f 20 | 62 65 67 69 6e 0d 09 09 |ntry do |begin...|
|00003950| 09 09 76 65 72 73 69 6f | 6e 20 3a 3d 20 30 3b 0d |..versio|n := 0;.|
|00003960| 09 09 09 09 66 69 6c 65 | 5f 74 79 70 65 20 3a 3d |....file|_type :=|
|00003970| 20 4f 53 54 79 70 65 28 | 30 29 3b 0d 09 09 09 09 | OSType(|0);.....|
|00003980| 66 69 6c 65 5f 63 72 65 | 61 74 6f 72 20 3a 3d 20 |file_cre|ator := |
|00003990| 4f 53 54 79 70 65 28 30 | 29 3b 0d 09 09 09 09 70 |OSType(0|);.....p|
|000039a0| 6f 73 74 5f 63 72 65 61 | 74 6f 72 20 3a 3d 20 4f |ost_crea|tor := O|
|000039b0| 53 54 79 70 65 28 30 29 | 3b 0d 09 09 09 09 66 6c |SType(0)|;.....fl|
|000039c0| 61 67 73 20 3a 3d 20 30 | 3b 0d 09 09 09 09 65 78 |ags := 0|;.....ex|
|000039d0| 74 65 6e 73 69 6f 6e 20 | 3a 3d 20 27 27 3b 0d 09 |tension |:= '';..|
|000039e0| 09 09 09 63 72 65 61 74 | 6f 72 5f 61 70 70 5f 6e |...creat|or_app_n|
|000039f0| 61 6d 65 20 3a 3d 20 27 | 27 3b 0d 09 09 09 09 70 |ame := '|';.....p|
|00003a00| 6f 73 74 5f 61 70 70 5f | 6e 61 6d 65 20 3a 3d 20 |ost_app_|name := |
|00003a10| 27 27 3b 0d 09 09 09 09 | 4d 49 4d 45 5f 74 79 70 |'';.....|MIME_typ|
|00003a20| 65 20 3a 3d 20 27 27 3b | 0d 09 09 09 09 65 6e 74 |e := '';|.....ent|
|00003a30| 72 79 5f 6e 61 6d 65 20 | 3a 3d 20 27 27 3b 0d 09 |ry_name |:= '';..|
|00003a40| 09 09 65 6e 64 3b 20 28 | 2a 20 77 69 74 68 20 2a |..end; (|* with *|
|00003a50| 29 0d 09 09 09 65 72 72 | 20 3a 3d 20 6e 6f 45 72 |)....err| := noEr|
|00003a60| 72 3b 0d 09 09 65 6e 64 | 20 65 6c 73 65 20 62 65 |r;...end| else be|
|00003a70| 67 69 6e 0d 09 09 09 65 | 72 72 20 3a 3d 20 49 43 |gin....e|rr := IC|
|00003a80| 4d 61 70 45 72 72 28 49 | 43 47 65 74 49 6e 64 4d |MapErr(I|CGetIndM|
|00003a90| 61 70 45 6e 74 72 79 28 | 47 65 74 49 6e 73 74 61 |apEntry(|GetInsta|
|00003aa0| 6e 63 65 2c 20 65 6e 74 | 72 69 65 73 2c 20 73 65 |nce, ent|ries, se|
|00003ab0| 6c 65 63 74 69 6f 6e 20 | 2b 20 31 2c 20 70 6f 73 |lection |+ 1, pos|
|00003ac0| 2c 20 65 6e 74 72 79 29 | 29 3b 0d 09 09 65 6e 64 |, entry)|);...end|
|00003ad0| 3b 20 28 2a 20 69 66 20 | 2a 29 0d 0d 09 09 69 66 |; (* if |*)....if|
|00003ae0| 20 65 72 72 20 3d 20 6e | 6f 45 72 72 20 74 68 65 | err = n|oErr the|
|00003af0| 6e 20 62 65 67 69 6e 0d | 09 09 09 65 72 72 20 3a |n begin.|...err :|
|00003b00| 3d 20 44 6f 44 69 61 6c | 6f 67 28 65 6e 74 72 79 |= DoDial|og(entry|
|00003b10| 29 3b 0d 09 09 65 6e 64 | 3b 20 28 2a 20 69 66 20 |);...end|; (* if |
|00003b20| 2a 29 0d 0d 09 09 69 66 | 20 65 72 72 20 3d 20 6e |*)....if| err = n|
|00003b30| 6f 45 72 72 20 74 68 65 | 6e 20 62 65 67 69 6e 0d |oErr the|n begin.|
|00003b40| 09 09 09 69 66 20 73 65 | 6c 65 63 74 69 6f 6e 20 |...if se|lection |
|00003b50| 3d 20 2d 31 20 74 68 65 | 6e 20 62 65 67 69 6e 0d |= -1 the|n begin.|
|00003b60| 09 09 09 09 65 72 72 20 | 3a 3d 20 49 43 4d 61 70 |....err |:= ICMap|
|00003b70| 45 72 72 28 49 43 41 64 | 64 4d 61 70 45 6e 74 72 |Err(ICAd|dMapEntr|
|00003b80| 79 28 47 65 74 49 6e 73 | 74 61 6e 63 65 2c 20 65 |y(GetIns|tance, e|
|00003b90| 6e 74 72 69 65 73 2c 20 | 65 6e 74 72 79 29 29 3b |ntries, |entry));|
|00003ba0| 0d 09 09 09 09 69 66 20 | 65 72 72 20 3d 20 6e 6f |.....if |err = no|
|00003bb0| 45 72 72 20 74 68 65 6e | 20 62 65 67 69 6e 0d 09 |Err then| begin..|
|00003bc0| 09 09 09 09 6a 75 6e 6b | 69 6e 74 20 3a 3d 20 4c |....junk|int := L|
|00003bd0| 41 64 64 52 6f 77 28 31 | 2c 20 33 32 37 36 37 2c |AddRow(1|, 32767,|
|00003be0| 20 6c 68 29 3b 0d 09 09 | 09 09 65 6e 64 3b 20 28 | lh);...|..end; (|
|00003bf0| 2a 20 69 66 20 2a 29 0d | 09 09 09 65 6e 64 20 65 |* if *).|...end e|
|00003c00| 6c 73 65 20 62 65 67 69 | 6e 0d 09 09 09 09 65 72 |lse begi|n.....er|
|00003c10| 72 20 3a 3d 20 49 43 4d | 61 70 45 72 72 28 49 43 |r := ICM|apErr(IC|
|00003c20| 53 65 74 4d 61 70 45 6e | 74 72 79 28 47 65 74 49 |SetMapEn|try(GetI|
|00003c30| 6e 73 74 61 6e 63 65 2c | 20 65 6e 74 72 69 65 73 |nstance,| entries|
|00003c40| 2c 20 70 6f 73 2c 20 65 | 6e 74 72 79 29 29 3b 0d |, pos, e|ntry));.|
|00003c50| 09 09 09 65 6e 64 3b 20 | 28 2a 20 69 66 20 2a 29 |...end; |(* if *)|
|00003c60| 0d 09 09 65 6e 64 3b 20 | 28 2a 20 69 66 20 2a 29 |...end; |(* if *)|
|00003c70| 0d 09 09 44 6f 41 64 64 | 43 68 61 6e 67 65 20 3a |...DoAdd|Change :|
|00003c80| 3d 20 65 72 72 3b 0d 09 | 65 6e 64 3b 20 28 2a 20 |= err;..|end; (* |
|00003c90| 44 6f 41 64 64 43 68 61 | 6e 67 65 20 2a 29 0d 0d |DoAddCha|nge *)..|
|00003ca0| 09 66 75 6e 63 74 69 6f | 6e 20 53 65 74 45 6e 74 |.functio|n SetEnt|
|00003cb0| 72 69 65 73 48 61 6e 64 | 6c 65 28 77 74 3a 57 69 |riesHand|le(wt:Wi|
|00003cc0| 6e 64 6f 77 54 79 70 65 | 3b 20 65 6e 74 72 69 65 |ndowType|; entrie|
|00003cd0| 73 3a 48 61 6e 64 6c 65 | 29 3a 4f 53 53 74 61 74 |s:Handle|):OSStat|
|00003ce0| 75 73 3b 0d 09 09 76 61 | 72 0d 09 09 09 65 72 72 |us;...va|r....err|
|00003cf0| 3a 4f 53 53 74 61 74 75 | 73 3b 0d 09 09 09 74 6d |:OSStatu|s;....tm|
|00003d00| 70 68 3a 48 61 6e 64 6c | 65 3b 0d 09 09 09 63 6f |ph:Handl|e;....co|
|00003d10| 75 6e 74 3a 6c 6f 6e 67 | 49 6e 74 3b 0d 09 09 09 |unt:long|Int;....|
|00003d20| 6c 69 73 74 3a 4c 69 73 | 74 48 61 6e 64 6c 65 3b |list:Lis|tHandle;|
|00003d30| 0d 09 09 09 77 69 6e 64 | 6f 77 3a 57 69 6e 64 6f |....wind|ow:Windo|
|00003d40| 77 50 74 72 3b 0d 09 09 | 09 72 6f 77 3a 69 6e 74 |wPtr;...|.row:int|
|00003d50| 65 67 65 72 3b 0d 09 62 | 65 67 69 6e 0d 09 09 6c |eger;..b|egin...l|
|00003d60| 69 73 74 20 3a 3d 20 4c | 69 73 74 48 61 6e 64 6c |ist := L|istHandl|
|00003d70| 65 28 77 69 6e 64 6f 77 | 69 6e 66 6f 5b 77 74 5d |e(window|info[wt]|
|00003d80| 2e 69 74 65 6d 73 5b 64 | 69 74 4c 69 73 74 5d 5e |.items[d|itList]^|
|00003d90| 2e 73 70 61 72 65 5f 64 | 61 74 61 29 3b 0d 09 09 |.spare_d|ata);...|
|00003da0| 65 72 72 20 3a 3d 20 49 | 43 43 6f 75 6e 74 4d 61 |err := I|CCountMa|
|00003db0| 70 45 6e 74 72 69 65 73 | 28 47 65 74 49 6e 73 74 |pEntries|(GetInst|
|00003dc0| 61 6e 63 65 2c 20 65 6e | 74 72 69 65 73 2c 20 63 |ance, en|tries, c|
|00003dd0| 6f 75 6e 74 29 3b 0d 09 | 09 69 66 20 65 72 72 20 |ount);..|.if err |
|00003de0| 3d 20 6e 6f 45 72 72 20 | 74 68 65 6e 20 62 65 67 |= noErr |then beg|
|00003df0| 69 6e 0d 09 09 09 77 69 | 6e 64 6f 77 20 3a 3d 20 |in....wi|ndow := |
|00003e00| 47 65 74 57 69 6e 64 6f | 77 50 74 72 28 77 74 29 |GetWindo|wPtr(wt)|
|00003e10| 3b 0d 09 09 09 4c 44 65 | 6c 52 6f 77 28 6c 69 73 |;....LDe|lRow(lis|
|00003e20| 74 5e 5e 2e 64 61 74 61 | 42 6f 75 6e 64 73 2e 62 |t^^.data|Bounds.b|
|00003e30| 6f 74 74 6f 6d 2b 31 30 | 2c 30 2c 6c 69 73 74 29 |ottom+10|,0,list)|
|00003e40| 3b 0d 09 09 09 74 6d 70 | 68 20 3a 3d 20 65 6e 74 |;....tmp|h := ent|
|00003e50| 72 69 65 73 3b 0d 09 09 | 09 65 6e 74 72 69 65 73 |ries;...|.entries|
|00003e60| 20 3a 3d 20 48 61 6e 64 | 6c 65 28 77 69 6e 64 6f | := Hand|le(windo|
|00003e70| 77 69 6e 66 6f 5b 77 74 | 5d 2e 69 74 65 6d 73 5b |winfo[wt|].items[|
|00003e80| 64 69 74 4c 69 73 74 5d | 5e 2e 64 61 74 61 29 3b |ditList]|^.data);|
|00003e90| 0d 09 09 09 77 69 6e 64 | 6f 77 69 6e 66 6f 5b 77 |....wind|owinfo[w|
|00003ea0| 74 5d 2e 69 74 65 6d 73 | 5b 64 69 74 4c 69 73 74 |t].items|[ditList|
|00003eb0| 5d 5e 2e 64 61 74 61 20 | 3a 3d 20 50 74 72 28 74 |]^.data |:= Ptr(t|
|00003ec0| 6d 70 68 29 3b 0d 09 09 | 09 72 6f 77 20 3a 3d 20 |mph);...|.row := |
|00003ed0| 4c 41 64 64 52 6f 77 28 | 63 6f 75 6e 74 20 2c 30 |LAddRow(|count ,0|
|00003ee0| 2c 6c 69 73 74 29 3b 0d | 09 09 65 6e 64 3b 0d 09 |,list);.|..end;..|
|00003ef0| 09 44 69 73 70 6f 73 65 | 48 61 6e 64 6c 65 28 65 |.Dispose|Handle(e|
|00003f00| 6e 74 72 69 65 73 29 3b | 0d 09 09 53 65 74 45 6e |ntries);|...SetEn|
|00003f10| 74 72 69 65 73 48 61 6e | 64 6c 65 20 3a 3d 20 65 |triesHan|dle := e|
|00003f20| 72 72 3b 0d 09 65 6e 64 | 3b 0d 09 0d 09 74 79 70 |rr;..end|;....typ|
|00003f30| 65 0d 09 09 53 6d 61 6c | 6c 52 65 63 6f 72 64 20 |e...Smal|lRecord |
|00003f40| 3d 20 72 65 63 6f 72 64 | 0d 09 09 09 70 6f 73 69 |= record|....posi|
|00003f50| 74 69 6f 6e 3a 6c 6f 6e | 67 49 6e 74 3b 0d 09 09 |tion:lon|gInt;...|
|00003f60| 09 6b 65 79 3a 53 74 72 | 33 31 3b 0d 09 09 65 6e |.key:Str|31;...en|
|00003f70| 64 3b 0d 09 09 53 6d 61 | 6c 6c 41 72 72 61 79 20 |d;...Sma|llArray |
|00003f80| 3d 20 61 72 72 61 79 5b | 31 2e 2e 31 30 30 30 30 |= array[|1..10000|
|00003f90| 5d 20 6f 66 20 53 6d 61 | 6c 6c 52 65 63 6f 72 64 |] of Sma|llRecord|
|00003fa0| 3b 0d 09 09 53 6d 61 6c | 6c 41 72 72 61 79 50 74 |;...Smal|lArrayPt|
|00003fb0| 72 20 3d 20 5e 53 6d 61 | 6c 6c 41 72 72 61 79 3b |r = ^Sma|llArray;|
|00003fc0| 0d 09 09 53 6d 61 6c 6c | 41 72 72 61 79 48 61 6e |...Small|ArrayHan|
|00003fd0| 64 6c 65 20 3d 20 5e 53 | 6d 61 6c 6c 41 72 72 61 |dle = ^S|mallArra|
|00003fe0| 79 50 74 72 3b 0d 09 0d | 09 76 61 72 0d 09 09 53 |yPtr;...|.var...S|
|00003ff0| 6d 61 6c 6c 53 6f 72 74 | 5f 76 2c 20 53 6d 61 6c |mallSort|_v, Smal|
|00004000| 6c 53 6f 72 74 5f 74 20 | 3a 20 53 6d 61 6c 6c 52 |lSort_t |: SmallR|
|00004010| 65 63 6f 72 64 3b 0d 09 | 09 28 2a 20 49 20 74 6f |ecord;..|.(* I to|
|00004020| 6f 6b 20 74 68 65 73 65 | 20 76 61 72 69 61 62 6c |ok these| variabl|
|00004030| 65 73 20 6f 75 74 20 6f | 66 20 51 75 69 63 6b 53 |es out o|f QuickS|
|00004040| 6f 72 74 20 74 6f 20 72 | 65 64 75 63 65 20 74 68 |ort to r|educe th|
|00004050| 65 20 73 74 61 63 6b 20 | 75 73 61 67 65 2e 20 20 |e stack |usage. |
|00004060| 49 20 61 6c 73 6f 20 6d | 61 64 65 20 74 68 65 6d |I also m|ade them|
|00004070| 20 67 6c 6f 62 61 6c 73 | 20 74 6f 20 6d 61 6b 65 | globals| to make|
|00004080| 20 74 68 65 6d 0d 09 09 | 09 09 67 6f 20 66 61 73 | them...|..go fas|
|00004090| 74 65 72 2e 0d 09 09 2a | 29 0d 09 09 53 6d 61 6c |ter....*|)...Smal|
|000040a0| 6c 53 6f 72 74 5f 73 6d | 61 6c 6c 3a 53 6d 61 6c |lSort_sm|all:Smal|
|000040b0| 6c 41 72 72 61 79 50 74 | 72 3b 0d 09 09 0d 09 66 |lArrayPt|r;.....f|
|000040c0| 75 6e 63 74 69 6f 6e 20 | 53 6d 61 6c 6c 53 6f 72 |unction |SmallSor|
|000040d0| 74 28 73 6d 61 6c 6c 3a | 53 6d 61 6c 6c 41 72 72 |t(small:|SmallArr|
|000040e0| 61 79 48 61 6e 64 6c 65 | 3b 20 63 6f 75 6e 74 3a |ayHandle|; count:|
|000040f0| 6c 6f 6e 67 49 6e 74 29 | 20 3a 20 4f 53 45 72 72 |longInt)| : OSErr|
|00004100| 3b 0d 09 0d 09 6c 61 62 | 65 6c 20 36 36 36 3b 0d |;....lab|el 666;.|
|00004110| 09 0d 09 09 70 72 6f 63 | 65 64 75 72 65 20 51 75 |....proc|edure Qu|
|00004120| 69 63 6b 53 6f 72 74 28 | 6c 2c 72 3a 6c 6f 6e 67 |ickSort(|l,r:long|
|00004130| 49 6e 74 29 3b 0d 09 09 | 09 76 61 72 0d 09 09 09 |Int);...|.var....|
|00004140| 09 69 2c 6a 3a 6c 6f 6e | 67 49 6e 74 3b 0d 09 09 |.i,j:lon|gInt;...|
|00004150| 62 65 67 69 6e 0d 09 09 | 09 69 66 20 72 20 3e 20 |begin...|.if r > |
|00004160| 6c 20 74 68 65 6e 20 62 | 65 67 69 6e 0d 09 09 09 |l then b|egin....|
|00004170| 09 53 6d 61 6c 6c 53 6f | 72 74 5f 76 20 3a 3d 20 |.SmallSo|rt_v := |
|00004180| 53 6d 61 6c 6c 53 6f 72 | 74 5f 73 6d 61 6c 6c 5e |SmallSor|t_small^|
|00004190| 5b 20 72 20 5d 3b 09 09 | 09 28 2a 20 28 6c 20 2b |[ r ];..|.(* (l +|
|000041a0| 20 72 29 20 64 69 76 20 | 32 20 2a 29 0d 09 09 09 | r) div |2 *)....|
|000041b0| 09 69 20 3a 3d 20 6c 20 | 2d 20 31 3b 0d 09 09 09 |.i := l |- 1;....|
|000041c0| 09 6a 20 3a 3d 20 72 3b | 0d 09 09 09 09 72 65 70 |.j := r;|.....rep|
|000041d0| 65 61 74 0d 09 09 09 09 | 09 72 65 70 65 61 74 0d |eat.....|.repeat.|
|000041e0| 09 09 09 09 09 09 69 20 | 3a 3d 20 69 20 2b 20 31 |......i |:= i + 1|
|000041f0| 3b 0d 09 09 09 09 09 75 | 6e 74 69 6c 20 49 55 43 |;......u|ntil IUC|
|00004200| 6f 6d 70 53 74 72 69 6e | 67 28 53 6d 61 6c 6c 53 |ompStrin|g(SmallS|
|00004210| 6f 72 74 5f 73 6d 61 6c | 6c 5e 5b 69 5d 2e 6b 65 |ort_smal|l^[i].ke|
|00004220| 79 2c 20 53 6d 61 6c 6c | 53 6f 72 74 5f 76 2e 6b |y, Small|Sort_v.k|
|00004230| 65 79 29 20 3e 3d 20 30 | 3b 0d 09 09 09 09 09 72 |ey) >= 0|;......r|
|00004240| 65 70 65 61 74 0d 09 09 | 09 09 09 09 6a 20 3a 3d |epeat...|....j :=|
|00004250| 20 6a 20 2d 20 31 3b 0d | 09 09 09 09 09 75 6e 74 | j - 1;.|.....unt|
|00004260| 69 6c 20 20 49 55 43 6f | 6d 70 53 74 72 69 6e 67 |il IUCo|mpString|
|00004270| 28 53 6d 61 6c 6c 53 6f | 72 74 5f 73 6d 61 6c 6c |(SmallSo|rt_small|
|00004280| 5e 5b 6a 5d 2e 6b 65 79 | 2c 20 53 6d 61 6c 6c 53 |^[j].key|, SmallS|
|00004290| 6f 72 74 5f 76 2e 6b 65 | 79 29 20 3c 3d 20 30 3b |ort_v.ke|y) <= 0;|
|000042a0| 0d 09 09 09 09 09 53 6d | 61 6c 6c 53 6f 72 74 5f |......Sm|allSort_|
|000042b0| 74 20 3a 3d 20 53 6d 61 | 6c 6c 53 6f 72 74 5f 73 |t := Sma|llSort_s|
|000042c0| 6d 61 6c 6c 5e 5b 69 5d | 3b 0d 09 09 09 09 09 53 |mall^[i]|;......S|
|000042d0| 6d 61 6c 6c 53 6f 72 74 | 5f 73 6d 61 6c 6c 5e 5b |mallSort|_small^[|
|000042e0| 69 5d 20 3a 3d 20 53 6d | 61 6c 6c 53 6f 72 74 5f |i] := Sm|allSort_|
|000042f0| 73 6d 61 6c 6c 5e 5b 6a | 5d 3b 0d 09 09 09 09 09 |small^[j|];......|
|00004300| 53 6d 61 6c 6c 53 6f 72 | 74 5f 73 6d 61 6c 6c 5e |SmallSor|t_small^|
|00004310| 5b 6a 5d 20 3a 3d 20 53 | 6d 61 6c 6c 53 6f 72 74 |[j] := S|mallSort|
|00004320| 5f 74 3b 0d 09 09 09 09 | 75 6e 74 69 6c 20 6a 20 |_t;.....|until j |
|00004330| 3c 3d 20 69 3b 0d 09 09 | 09 09 53 6d 61 6c 6c 53 |<= i;...|..SmallS|
|00004340| 6f 72 74 5f 73 6d 61 6c | 6c 5e 5b 6a 5d 20 3a 3d |ort_smal|l^[j] :=|
|00004350| 20 53 6d 61 6c 6c 53 6f | 72 74 5f 73 6d 61 6c 6c | SmallSo|rt_small|
|00004360| 5e 5b 69 5d 3b 0d 09 09 | 09 09 53 6d 61 6c 6c 53 |^[i];...|..SmallS|
|00004370| 6f 72 74 5f 73 6d 61 6c | 6c 5e 5b 69 5d 20 3a 3d |ort_smal|l^[i] :=|
|00004380| 20 53 6d 61 6c 6c 53 6f | 72 74 5f 73 6d 61 6c 6c | SmallSo|rt_small|
|00004390| 5e 5b 72 5d 3b 0d 09 09 | 09 09 53 6d 61 6c 6c 53 |^[r];...|..SmallS|
|000043a0| 6f 72 74 5f 73 6d 61 6c | 6c 5e 5b 72 5d 20 3a 3d |ort_smal|l^[r] :=|
|000043b0| 20 53 6d 61 6c 6c 53 6f | 72 74 5f 74 3b 0d 09 09 | SmallSo|rt_t;...|
|000043c0| 09 09 69 66 20 53 74 61 | 63 6b 53 70 61 63 65 20 |..if Sta|ckSpace |
|000043d0| 3c 20 34 30 39 36 20 74 | 68 65 6e 20 62 65 67 69 |< 4096 t|hen begi|
|000043e0| 6e 0d 09 09 09 09 09 67 | 6f 74 6f 20 36 36 36 3b |n......g|oto 666;|
|000043f0| 0d 09 09 09 09 65 6e 64 | 3b 20 28 2a 20 69 66 20 |.....end|; (* if |
|00004400| 2a 29 0d 09 09 09 09 51 | 75 69 63 6b 53 6f 72 74 |*).....Q|uickSort|
|00004410| 28 6c 2c 20 69 2d 31 29 | 3b 0d 09 09 09 09 51 75 |(l, i-1)|;.....Qu|
|00004420| 69 63 6b 53 6f 72 74 28 | 69 2b 31 2c 20 72 29 3b |ickSort(|i+1, r);|
|00004430| 0d 09 09 09 65 6e 64 3b | 0d 09 09 65 6e 64 3b 0d |....end;|...end;.|
|00004440| 09 09 0d 09 09 76 61 72 | 0d 09 09 09 73 20 3a 20 |.....var|....s : |
|00004450| 53 49 6e 74 38 3b 0d 09 | 62 65 67 69 6e 0d 09 09 |SInt8;..|begin...|
|00004460| 73 20 3a 3d 20 48 47 65 | 74 53 74 61 74 65 28 48 |s := HGe|tState(H|
|00004470| 61 6e 64 6c 65 28 73 6d | 61 6c 6c 29 29 3b 0d 09 |andle(sm|all));..|
|00004480| 09 48 4c 6f 63 6b 28 48 | 61 6e 64 6c 65 28 73 6d |.HLock(H|andle(sm|
|00004490| 61 6c 6c 29 29 3b 0d 09 | 09 53 6d 61 6c 6c 53 6f |all));..|.SmallSo|
|000044a0| 72 74 5f 73 6d 61 6c 6c | 20 3a 3d 20 73 6d 61 6c |rt_small| := smal|
|000044b0| 6c 5e 3b 0d 09 09 0d 09 | 09 53 6d 61 6c 6c 53 6f |l^;.....|.SmallSo|
|000044c0| 72 74 20 3a 3d 20 6d 65 | 6d 46 75 6c 6c 45 72 72 |rt := me|mFullErr|
|000044d0| 3b 0d 09 09 51 75 69 63 | 6b 53 6f 72 74 28 31 2c |;...Quic|kSort(1,|
|000044e0| 63 6f 75 6e 74 29 3b 0d | 09 09 53 6d 61 6c 6c 53 |count);.|..SmallS|
|000044f0| 6f 72 74 20 3a 3d 20 6e | 6f 45 72 72 3b 0d 09 36 |ort := n|oErr;..6|
|00004500| 36 36 3a 0d 09 09 48 53 | 65 74 53 74 61 74 65 28 |66:...HS|etState(|
|00004510| 48 61 6e 64 6c 65 28 73 | 6d 61 6c 6c 29 2c 20 73 |Handle(s|mall), s|
|00004520| 29 3b 0d 09 65 6e 64 3b | 0d 09 0d 09 70 72 6f 63 |);..end;|....proc|
|00004530| 65 64 75 72 65 20 44 6f | 53 6f 72 74 28 77 74 3a |edure Do|Sort(wt:|
|00004540| 20 57 69 6e 64 6f 77 54 | 79 70 65 3b 20 69 74 65 | WindowT|ype; ite|
|00004550| 6d 3a 69 6e 74 65 67 65 | 72 29 3b 0d 09 09 76 61 |m:intege|r);...va|
|00004560| 72 0d 09 09 09 65 72 72 | 3a 4f 53 53 74 61 74 75 |r....err|:OSStatu|
|00004570| 73 3b 0d 09 09 09 65 6e | 74 72 69 65 73 2c 20 73 |s;....en|tries, s|
|00004580| 6f 72 74 65 64 5f 65 6e | 74 72 69 65 73 3a 48 61 |orted_en|tries:Ha|
|00004590| 6e 64 6c 65 3b 0d 09 09 | 09 73 6d 61 6c 6c 3a 53 |ndle;...|.small:S|
|000045a0| 6d 61 6c 6c 41 72 72 61 | 79 48 61 6e 64 6c 65 3b |mallArra|yHandle;|
|000045b0| 0d 09 09 09 63 6f 75 6e | 74 3a 6c 6f 6e 67 49 6e |....coun|t:longIn|
|000045c0| 74 3b 0d 09 09 09 70 6f | 73 3a 6c 6f 6e 67 49 6e |t;....po|s:longIn|
|000045d0| 74 3b 0d 09 09 09 65 6e | 74 72 79 3a 20 49 43 4d |t;....en|try: ICM|
|000045e0| 61 70 45 6e 74 72 79 3b | 0d 09 09 09 69 3a 6c 6f |apEntry;|....i:lo|
|000045f0| 6e 67 49 6e 74 3b 0d 09 | 62 65 67 69 6e 0d 09 09 |ngInt;..|begin...|
|00004600| 53 65 74 43 75 72 73 6f | 72 28 47 65 74 43 75 72 |SetCurso|r(GetCur|
|00004610| 73 6f 72 28 77 61 74 63 | 68 43 75 72 73 6f 72 29 |sor(watc|hCursor)|
|00004620| 5e 5e 29 3b 0d 09 09 65 | 6e 74 72 69 65 73 20 3a |^^);...e|ntries :|
|00004630| 3d 20 48 61 6e 64 6c 65 | 28 77 69 6e 64 6f 77 69 |= Handle|(windowi|
|00004640| 6e 66 6f 5b 77 74 5d 2e | 69 74 65 6d 73 5b 64 69 |nfo[wt].|items[di|
|00004650| 74 4c 69 73 74 5d 5e 2e | 64 61 74 61 29 3b 0d 09 |tList]^.|data);..|
|00004660| 09 73 6f 72 74 65 64 5f | 65 6e 74 72 69 65 73 20 |.sorted_|entries |
|00004670| 3a 3d 20 4e 65 77 48 61 | 6e 64 6c 65 28 30 29 3b |:= NewHa|ndle(0);|
|00004680| 0d 09 09 65 72 72 20 3a | 3d 20 49 43 43 6f 75 6e |...err :|= ICCoun|
|00004690| 74 4d 61 70 45 6e 74 72 | 69 65 73 28 47 65 74 49 |tMapEntr|ies(GetI|
|000046a0| 6e 73 74 61 6e 63 65 2c | 20 65 6e 74 72 69 65 73 |nstance,| entries|
|000046b0| 2c 20 63 6f 75 6e 74 29 | 3b 0d 09 09 69 66 20 65 |, count)|;...if e|
|000046c0| 72 72 20 3d 20 6e 6f 45 | 72 72 20 74 68 65 6e 20 |rr = noE|rr then |
|000046d0| 62 65 67 69 6e 0d 09 09 | 09 73 6d 61 6c 6c 20 3a |begin...|.small :|
|000046e0| 3d 20 53 6d 61 6c 6c 41 | 72 72 61 79 48 61 6e 64 |= SmallA|rrayHand|
|000046f0| 6c 65 28 4e 65 77 48 61 | 6e 64 6c 65 28 53 69 7a |le(NewHa|ndle(Siz|
|00004700| 65 4f 66 28 53 6d 61 6c | 6c 52 65 63 6f 72 64 29 |eOf(Smal|lRecord)|
|00004710| 2a 63 6f 75 6e 74 29 29 | 3b 0d 09 09 09 65 72 72 |*count))|;....err|
|00004720| 20 3a 3d 20 4d 65 6d 45 | 72 72 6f 72 3b 0d 09 09 | := MemE|rror;...|
|00004730| 09 69 66 20 65 72 72 20 | 3d 20 6e 6f 45 72 72 20 |.if err |= noErr |
|00004740| 74 68 65 6e 20 62 65 67 | 69 6e 0d 09 09 09 09 70 |then beg|in.....p|
|00004750| 6f 73 20 3a 3d 20 30 3b | 0d 09 09 09 09 66 6f 72 |os := 0;|.....for|
|00004760| 20 69 3a 3d 20 31 20 74 | 6f 20 63 6f 75 6e 74 20 | i:= 1 t|o count |
|00004770| 64 6f 20 62 65 67 69 6e | 0d 09 09 09 09 09 65 72 |do begin|......er|
|00004780| 72 20 3a 3d 20 49 43 47 | 65 74 4d 61 70 45 6e 74 |r := ICG|etMapEnt|
|00004790| 72 79 28 47 65 74 49 6e | 73 74 61 6e 63 65 2c 20 |ry(GetIn|stance, |
|000047a0| 65 6e 74 72 69 65 73 2c | 20 70 6f 73 2c 20 65 6e |entries,| pos, en|
|000047b0| 74 72 79 29 3b 0d 09 09 | 09 09 09 69 66 20 65 72 |try);...|...if er|
|000047c0| 72 20 3c 3e 20 6e 6f 45 | 72 72 20 74 68 65 6e 20 |r <> noE|rr then |
|000047d0| 62 65 67 69 6e 0d 09 09 | 09 09 09 09 6c 65 61 76 |begin...|....leav|
|000047e0| 65 3b 0d 09 09 09 09 09 | 65 6e 64 3b 0d 09 09 09 |e;......|end;....|
|000047f0| 09 09 73 6d 61 6c 6c 5e | 5e 5b 69 5d 2e 70 6f 73 |..small^|^[i].pos|
|00004800| 69 74 69 6f 6e 20 3a 3d | 20 69 3b 0d 09 09 09 09 |ition :=| i;.....|
|00004810| 09 63 61 73 65 20 69 74 | 65 6d 20 6f 66 0d 09 09 |.case it|em of...|
|00004820| 09 09 09 09 64 69 74 53 | 6f 72 74 45 78 74 65 6e |....ditS|ortExten|
|00004830| 73 69 6f 6e 3a 62 65 67 | 69 6e 0d 09 09 09 09 09 |sion:beg|in......|
|00004840| 09 09 73 6d 61 6c 6c 5e | 5e 5b 69 5d 2e 6b 65 79 |..small^|^[i].key|
|00004850| 20 3a 3d 20 54 50 43 6f | 70 79 28 65 6e 74 72 79 | := TPCo|py(entry|
|00004860| 2e 65 78 74 65 6e 73 69 | 6f 6e 2c 20 31 2c 20 33 |.extensi|on, 1, 3|
|00004870| 31 29 3b 0d 09 09 09 09 | 09 09 65 6e 64 3b 0d 09 |1);.....|..end;..|
|00004880| 09 09 09 09 09 64 69 74 | 53 6f 72 74 41 70 70 6c |.....dit|SortAppl|
|00004890| 69 63 61 74 69 6f 6e 3a | 62 65 67 69 6e 0d 09 09 |ication:|begin...|
|000048a0| 09 09 09 09 09 73 6d 61 | 6c 6c 5e 5e 5b 69 5d 2e |.....sma|ll^^[i].|
|000048b0| 6b 65 79 20 3a 3d 20 54 | 50 43 6f 70 79 28 65 6e |key := T|PCopy(en|
|000048c0| 74 72 79 2e 63 72 65 61 | 74 6f 72 5f 61 70 70 5f |try.crea|tor_app_|
|000048d0| 6e 61 6d 65 2c 20 31 2c | 20 33 31 29 3b 0d 09 09 |name, 1,| 31);...|
|000048e0| 09 09 09 09 65 6e 64 3b | 0d 09 09 09 09 09 09 64 |....end;|.......d|
|000048f0| 69 74 53 6f 72 74 4e 61 | 6d 65 3a 62 65 67 69 6e |itSortNa|me:begin|
|00004900| 0d 09 09 09 09 09 09 09 | 73 6d 61 6c 6c 5e 5e 5b |........|small^^[|
|00004910| 69 5d 2e 6b 65 79 20 3a | 3d 20 54 50 43 6f 70 79 |i].key :|= TPCopy|
|00004920| 28 65 6e 74 72 79 2e 65 | 6e 74 72 79 5f 6e 61 6d |(entry.e|ntry_nam|
|00004930| 65 2c 20 31 2c 20 33 31 | 29 3b 0d 09 09 09 09 09 |e, 1, 31|);......|
|00004940| 09 65 6e 64 3b 0d 09 09 | 09 09 09 65 6e 64 3b 20 |.end;...|...end; |
|00004950| 0d 09 09 09 09 09 70 6f | 73 20 3a 3d 20 70 6f 73 |......po|s := pos|
|00004960| 20 2b 20 65 6e 74 72 79 | 2e 74 6f 74 61 6c 5f 6c | + entry|.total_l|
|00004970| 65 6e 67 74 68 3b 0d 09 | 09 09 09 65 6e 64 3b 0d |ength;..|...end;.|
|00004980| 09 09 09 09 69 66 20 65 | 72 72 20 3d 20 6e 6f 45 |....if e|rr = noE|
|00004990| 72 72 20 74 68 65 6e 20 | 62 65 67 69 6e 0d 09 09 |rr then |begin...|
|000049a0| 09 09 09 65 72 72 20 3a | 3d 20 53 6d 61 6c 6c 53 |...err :|= SmallS|
|000049b0| 6f 72 74 28 73 6d 61 6c | 6c 2c 20 63 6f 75 6e 74 |ort(smal|l, count|
|000049c0| 29 3b 0d 09 09 09 09 65 | 6e 64 3b 20 28 2a 20 69 |);.....e|nd; (* i|
|000049d0| 66 20 2a 29 0d 09 09 09 | 09 69 66 20 65 72 72 20 |f *)....|.if err |
|000049e0| 3d 20 6e 6f 45 72 72 20 | 74 68 65 6e 20 62 65 67 |= noErr |then beg|
|000049f0| 69 6e 0d 09 09 09 09 09 | 48 4c 6f 63 6b 28 65 6e |in......|HLock(en|
|00004a00| 74 72 69 65 73 29 3b 0d | 09 09 09 09 09 66 6f 72 |tries);.|.....for|
|00004a10| 20 69 3a 3d 20 31 20 74 | 6f 20 63 6f 75 6e 74 20 | i:= 1 t|o count |
|00004a20| 64 6f 20 62 65 67 69 6e | 0d 09 09 09 09 09 09 65 |do begin|.......e|
|00004a30| 72 72 20 3a 3d 20 49 43 | 47 65 74 49 6e 64 4d 61 |rr := IC|GetIndMa|
|00004a40| 70 45 6e 74 72 79 28 47 | 65 74 49 6e 73 74 61 6e |pEntry(G|etInstan|
|00004a50| 63 65 2c 20 65 6e 74 72 | 69 65 73 2c 20 73 6d 61 |ce, entr|ies, sma|
|00004a60| 6c 6c 5e 5e 5b 69 5d 2e | 70 6f 73 69 74 69 6f 6e |ll^^[i].|position|
|00004a70| 2c 20 70 6f 73 2c 20 65 | 6e 74 72 79 29 3b 0d 09 |, pos, e|ntry);..|
|00004a80| 09 09 09 09 09 69 66 20 | 65 72 72 20 3d 20 6e 6f |.....if |err = no|
|00004a90| 45 72 72 20 74 68 65 6e | 20 62 65 67 69 6e 0d 09 |Err then| begin..|
|00004aa0| 09 09 09 09 09 09 65 72 | 72 20 3a 3d 20 50 74 72 |......er|r := Ptr|
|00004ab0| 41 6e 64 48 61 6e 64 28 | 6c 6f 6e 67 49 6e 74 28 |AndHand(|longInt(|
|00004ac0| 65 6e 74 72 69 65 73 5e | 29 20 2b 20 70 6f 73 2c |entries^|) + pos,|
|00004ad0| 20 73 6f 72 74 65 64 5f | 65 6e 74 72 69 65 73 2c | sorted_|entries,|
|00004ae0| 20 65 6e 74 72 79 2e 74 | 6f 74 61 6c 5f 6c 65 6e | entry.t|otal_len|
|00004af0| 67 74 68 29 3b 0d 09 09 | 09 09 09 09 65 6e 64 3b |gth);...|....end;|
|00004b00| 0d 09 09 09 09 09 09 69 | 66 20 65 72 72 20 3c 3e |.......i|f err <>|
|00004b10| 20 6e 6f 45 72 72 20 74 | 68 65 6e 20 62 65 67 69 | noErr t|hen begi|
|00004b20| 6e 0d 09 09 09 09 09 09 | 09 6c 65 61 76 65 3b 0d |n.......|.leave;.|
|00004b30| 09 09 09 09 09 09 65 6e | 64 3b 0d 09 09 09 09 09 |......en|d;......|
|00004b40| 65 6e 64 3b 0d 09 09 09 | 09 09 48 55 6e 6c 6f 63 |end;....|..HUnloc|
|00004b50| 6b 28 65 6e 74 72 69 65 | 73 29 3b 0d 09 09 09 09 |k(entrie|s);.....|
|00004b60| 65 6e 64 3b 0d 09 09 09 | 09 69 66 20 65 72 72 20 |end;....|.if err |
|00004b70| 3d 20 6e 6f 45 72 72 20 | 74 68 65 6e 20 62 65 67 |= noErr |then beg|
|00004b80| 69 6e 0d 09 09 09 09 09 | 65 72 72 20 3a 3d 20 53 |in......|err := S|
|00004b90| 65 74 45 6e 74 72 69 65 | 73 48 61 6e 64 6c 65 28 |etEntrie|sHandle(|
|00004ba0| 77 74 2c 20 73 6f 72 74 | 65 64 5f 65 6e 74 72 69 |wt, sort|ed_entri|
|00004bb0| 65 73 29 3b 0d 09 09 09 | 09 09 73 6f 72 74 65 64 |es);....|..sorted|
|00004bc0| 5f 65 6e 74 72 69 65 73 | 20 3a 3d 20 6e 69 6c 3b |_entries| := nil;|
|00004bd0| 0d 09 09 09 09 65 6e 64 | 3b 0d 09 09 09 65 6e 64 |.....end|;....end|
|00004be0| 3b 0d 09 09 09 44 69 73 | 70 6f 73 65 48 61 6e 64 |;....Dis|poseHand|
|00004bf0| 6c 65 28 48 61 6e 64 6c | 65 28 73 6d 61 6c 6c 29 |le(Handl|e(small)|
|00004c00| 29 3b 0d 09 09 65 6e 64 | 3b 0d 09 09 44 69 73 70 |);...end|;...Disp|
|00004c10| 6f 73 65 48 61 6e 64 6c | 65 28 73 6f 72 74 65 64 |oseHandl|e(sorted|
|00004c20| 5f 65 6e 74 72 69 65 73 | 29 3b 0d 09 09 49 6e 69 |_entries|);...Ini|
|00004c30| 74 43 75 72 73 6f 72 3b | 0d 09 09 44 69 73 70 6c |tCursor;|...Displ|
|00004c40| 61 79 45 72 72 6f 72 28 | 61 63 53 6f 72 74 2c 20 |ayError(|acSort, |
|00004c50| 65 72 72 29 3b 0d 09 65 | 6e 64 3b 0d 09 0d 09 70 |err);..e|nd;....p|
|00004c60| 72 6f 63 65 64 75 72 65 | 20 44 6f 53 65 74 44 65 |rocedure| DoSetDe|
|00004c70| 66 61 75 6c 74 73 28 77 | 74 3a 20 57 69 6e 64 6f |faults(w|t: Windo|
|00004c80| 77 54 79 70 65 29 3b 0d | 09 09 76 61 72 0d 09 09 |wType);.|..var...|
|00004c90| 09 65 72 72 3a 4f 53 53 | 74 61 74 75 73 3b 0d 09 |.err:OSS|tatus;..|
|00004ca0| 09 09 65 6e 74 72 69 65 | 73 3a 48 61 6e 64 6c 65 |..entrie|s:Handle|
|00004cb0| 3b 0d 09 62 65 67 69 6e | 0d 09 09 69 66 20 43 61 |;..begin|...if Ca|
|00004cc0| 75 74 69 6f 6e 41 6c 65 | 72 74 28 31 36 35 2c 20 |utionAle|rt(165, |
|00004cd0| 40 43 61 6e 63 65 6c 4d | 6f 64 61 6c 46 69 6c 74 |@CancelM|odalFilt|
|00004ce0| 65 72 29 20 3d 20 31 20 | 74 68 65 6e 20 62 65 67 |er) = 1 |then beg|
|00004cf0| 69 6e 0d 09 09 09 65 72 | 72 20 3a 3d 20 47 65 74 |in....er|r := Get|
|00004d00| 4d 61 70 45 6e 74 72 69 | 65 73 52 65 73 6f 75 72 |MapEntri|esResour|
|00004d10| 63 65 28 65 6e 74 72 69 | 65 73 29 3b 0d 09 09 09 |ce(entri|es);....|
|00004d20| 69 66 20 65 72 72 20 3d | 20 6e 6f 45 72 72 20 74 |if err =| noErr t|
|00004d30| 68 65 6e 20 62 65 67 69 | 6e 0d 09 09 09 09 44 65 |hen begi|n.....De|
|00004d40| 74 61 63 68 52 65 73 6f | 75 72 63 65 28 65 6e 74 |tachReso|urce(ent|
|00004d50| 72 69 65 73 29 3b 0d 09 | 09 09 09 65 72 72 20 3a |ries);..|...err :|
|00004d60| 3d 20 53 65 74 45 6e 74 | 72 69 65 73 48 61 6e 64 |= SetEnt|riesHand|
|00004d70| 6c 65 28 77 74 2c 20 65 | 6e 74 72 69 65 73 29 3b |le(wt, e|ntries);|
|00004d80| 0d 09 09 09 65 6e 64 3b | 0d 09 09 09 44 69 73 70 |....end;|....Disp|
|00004d90| 6c 61 79 45 72 72 6f 72 | 28 61 63 53 65 74 44 65 |layError|(acSetDe|
|00004da0| 66 61 75 6c 74 73 2c 20 | 65 72 72 29 3b 0d 09 09 |faults, |err);...|
|00004db0| 09 69 66 20 65 72 72 20 | 3d 20 6e 6f 45 72 72 20 |.if err |= noErr |
|00004dc0| 74 68 65 6e 20 62 65 67 | 69 6e 0d 09 09 09 09 44 |then beg|in.....D|
|00004dd0| 69 72 74 79 44 6f 63 75 | 6d 65 6e 74 3b 0d 09 09 |irtyDocu|ment;...|
|00004de0| 09 65 6e 64 3b 20 28 2a | 20 69 66 20 2a 29 0d 09 |.end; (*| if *)..|
|00004df0| 09 65 6e 64 3b 0d 09 65 | 6e 64 3b 0d 09 0d 09 66 |.end;..e|nd;....f|
|00004e00| 75 6e 63 74 69 6f 6e 20 | 57 68 61 74 43 6c 69 63 |unction |WhatClic|
|00004e10| 6b 46 69 6c 65 4d 61 70 | 20 28 77 74 3a 20 57 69 |kFileMap| (wt: Wi|
|00004e20| 6e 64 6f 77 54 79 70 65 | 3b 20 69 74 65 6d 3a 20 |ndowType|; item: |
|00004e30| 69 6e 74 65 67 65 72 3b | 20 65 72 3a 20 65 76 65 |integer;| er: eve|
|00004e40| 6e 74 52 65 63 6f 72 64 | 29 3a 20 4f 53 45 72 72 |ntRecord|): OSErr|
|00004e50| 3b 0d 09 09 76 61 72 0d | 09 09 09 6c 68 3a 20 4c |;...var.|...lh: L|
|00004e60| 69 73 74 48 61 6e 64 6c | 65 3b 0d 09 09 09 65 6e |istHandl|e;....en|
|00004e70| 74 72 79 3a 20 49 43 4d | 61 70 45 6e 74 72 79 3b |try: ICM|apEntry;|
|00004e80| 0d 09 09 09 65 6e 74 72 | 69 65 73 3a 20 48 61 6e |....entr|ies: Han|
|00004e90| 64 6c 65 3b 0d 09 09 09 | 73 65 6c 65 63 74 69 6f |dle;....|selectio|
|00004ea0| 6e 3a 20 69 6e 74 65 67 | 65 72 3b 0d 09 09 09 65 |n: integ|er;....e|
|00004eb0| 72 72 3a 20 4f 53 45 72 | 72 3b 0d 09 09 09 70 6f |rr: OSEr|r;....po|
|00004ec0| 73 3a 20 6c 6f 6e 67 69 | 6e 74 3b 0d 09 62 65 67 |s: longi|nt;..beg|
|00004ed0| 69 6e 0d 09 09 65 6e 74 | 72 69 65 73 20 3a 3d 20 |in...ent|ries := |
|00004ee0| 48 61 6e 64 6c 65 28 77 | 69 6e 64 6f 77 69 6e 66 |Handle(w|indowinf|
|00004ef0| 6f 5b 77 74 5d 2e 69 74 | 65 6d 73 5b 64 69 74 4c |o[wt].it|ems[ditL|
|00004f00| 69 73 74 5d 5e 2e 64 61 | 74 61 29 3b 0d 09 09 6c |ist]^.da|ta);...l|
|00004f10| 68 20 3a 3d 20 4c 69 73 | 74 48 61 6e 64 6c 65 28 |h := Lis|tHandle(|
|00004f20| 77 69 6e 64 6f 77 69 6e | 66 6f 5b 77 74 5d 2e 69 |windowin|fo[wt].i|
|00004f30| 74 65 6d 73 5b 64 69 74 | 4c 69 73 74 5d 5e 2e 73 |tems[dit|List]^.s|
|00004f40| 70 61 72 65 5f 64 61 74 | 61 29 3b 0d 09 09 47 6c |pare_dat|a);...Gl|
|00004f50| 6f 62 61 6c 54 6f 4c 6f | 63 61 6c 28 65 72 2e 77 |obalToLo|cal(er.w|
|00004f60| 68 65 72 65 29 3b 0d 09 | 09 73 65 6c 65 63 74 69 |here);..|.selecti|
|00004f70| 6f 6e 20 3a 3d 20 53 65 | 6c 65 63 74 65 64 4c 69 |on := Se|lectedLi|
|00004f80| 6e 65 28 6c 68 29 3b 0d | 09 09 65 72 72 20 3a 3d |ne(lh);.|..err :=|
|00004f90| 20 31 3b 0d 09 09 63 61 | 73 65 20 69 74 65 6d 20 | 1;...ca|se item |
|00004fa0| 6f 66 0d 09 09 09 64 69 | 74 41 64 64 3a 20 0d 09 |of....di|tAdd: ..|
|00004fb0| 09 09 09 65 72 72 20 3a | 3d 20 44 6f 41 64 64 43 |...err :|= DoAddC|
|00004fc0| 68 61 6e 67 65 28 2d 31 | 2c 20 65 6e 74 72 79 2c |hange(-1|, entry,|
|00004fd0| 20 65 6e 74 72 69 65 73 | 2c 20 6c 68 29 3b 0d 09 | entries|, lh);..|
|00004fe0| 09 09 64 69 74 43 68 61 | 6e 67 65 3a 20 0d 09 09 |..ditCha|nge: ...|
|00004ff0| 09 09 65 72 72 20 3a 3d | 20 44 6f 41 64 64 43 68 |..err :=| DoAddCh|
|00005000| 61 6e 67 65 28 73 65 6c | 65 63 74 69 6f 6e 2c 20 |ange(sel|ection, |
|00005010| 65 6e 74 72 79 2c 20 65 | 6e 74 72 69 65 73 2c 20 |entry, e|ntries, |
|00005020| 6c 68 29 3b 0d 09 09 09 | 64 69 74 44 65 6c 65 74 |lh);....|ditDelet|
|00005030| 65 3a 20 0d 09 09 09 09 | 69 66 20 73 65 6c 65 63 |e: .....|if selec|
|00005040| 74 69 6f 6e 20 3c 3e 20 | 2d 31 20 74 68 65 6e 20 |tion <> |-1 then |
|00005050| 62 65 67 69 6e 0d 09 09 | 09 09 09 65 72 72 20 3a |begin...|...err :|
|00005060| 3d 20 49 43 4d 61 70 45 | 72 72 28 49 43 47 65 74 |= ICMapE|rr(ICGet|
|00005070| 49 6e 64 4d 61 70 45 6e | 74 72 79 28 47 65 74 49 |IndMapEn|try(GetI|
|00005080| 6e 73 74 61 6e 63 65 2c | 20 65 6e 74 72 69 65 73 |nstance,| entries|
|00005090| 2c 20 73 65 6c 65 63 74 | 69 6f 6e 20 2b 20 31 2c |, select|ion + 1,|
|000050a0| 20 70 6f 73 2c 20 65 6e | 74 72 79 29 29 3b 0d 09 | pos, en|try));..|
|000050b0| 09 09 09 09 69 66 20 65 | 72 72 20 3d 20 6e 6f 45 |....if e|rr = noE|
|000050c0| 72 72 20 74 68 65 6e 20 | 62 65 67 69 6e 0d 09 09 |rr then |begin...|
|000050d0| 09 09 09 09 65 72 72 20 | 3a 3d 20 49 43 4d 61 70 |....err |:= ICMap|
|000050e0| 45 72 72 28 49 43 44 65 | 6c 65 74 65 4d 61 70 45 |Err(ICDe|leteMapE|
|000050f0| 6e 74 72 79 28 47 65 74 | 49 6e 73 74 61 6e 63 65 |ntry(Get|Instance|
|00005100| 2c 20 65 6e 74 72 69 65 | 73 2c 20 70 6f 73 29 29 |, entrie|s, pos))|
|00005110| 3b 0d 09 09 09 09 09 65 | 6e 64 3b 20 28 2a 20 69 |;......e|nd; (* i|
|00005120| 66 20 2a 29 0d 09 09 09 | 09 09 69 66 20 65 72 72 |f *)....|..if err|
|00005130| 20 3d 20 6e 6f 45 72 72 | 20 74 68 65 6e 20 62 65 | = noErr| then be|
|00005140| 67 69 6e 0d 09 09 09 09 | 09 09 4c 44 65 6c 52 6f |gin.....|..LDelRo|
|00005150| 77 28 31 2c 20 73 65 6c | 65 63 74 69 6f 6e 2c 20 |w(1, sel|ection, |
|00005160| 6c 68 29 3b 0d 09 09 09 | 09 09 65 6e 64 3b 20 28 |lh);....|..end; (|
|00005170| 2a 20 69 66 20 2a 29 0d | 09 09 09 09 65 6e 64 3b |* if *).|....end;|
|00005180| 20 28 2a 20 69 66 20 2a | 29 0d 09 09 09 64 69 74 | (* if *|)....dit|
|00005190| 4c 69 73 74 3a 20 20 62 | 65 67 69 6e 0d 09 09 09 |List: b|egin....|
|000051a0| 09 69 66 20 4c 43 6c 69 | 63 6b 28 65 72 2e 77 68 |.if LCli|ck(er.wh|
|000051b0| 65 72 65 2c 20 30 2c 20 | 6c 68 29 20 74 68 65 6e |ere, 0, |lh) then|
|000051c0| 20 62 65 67 69 6e 0d 09 | 09 09 09 09 69 66 20 49 | begin..|....if I|
|000051d0| 73 4c 6f 63 6b 65 64 28 | 77 74 2c 20 69 74 65 6d |sLocked(|wt, item|
|000051e0| 29 20 74 68 65 6e 20 62 | 65 67 69 6e 0d 09 09 09 |) then b|egin....|
|000051f0| 09 09 09 4c 6f 63 6b 65 | 64 41 6c 65 72 74 28 77 |...Locke|dAlert(w|
|00005200| 74 2c 20 69 74 65 6d 29 | 3b 0d 09 09 09 09 09 09 |t, item)|;.......|
|00005210| 65 72 72 20 3a 3d 20 75 | 73 65 72 43 61 6e 63 65 |err := u|serCance|
|00005220| 6c 65 64 45 72 72 3b 0d | 09 09 09 09 09 65 6e 64 |ledErr;.|.....end|
|00005230| 20 65 6c 73 65 20 62 65 | 67 69 6e 0d 09 09 09 09 | else be|gin.....|
|00005240| 09 09 46 6c 61 73 68 49 | 74 65 6d 28 77 69 6e 64 |..FlashI|tem(wind|
|00005250| 6f 77 69 6e 66 6f 5b 77 | 74 5d 2e 77 69 6e 64 6f |owinfo[w|t].windo|
|00005260| 77 2c 20 64 69 74 43 68 | 61 6e 67 65 29 3b 0d 09 |w, ditCh|ange);..|
|00005270| 09 09 09 09 09 65 72 72 | 20 3a 3d 20 44 6f 41 64 |.....err| := DoAd|
|00005280| 64 43 68 61 6e 67 65 28 | 53 65 6c 65 63 74 65 64 |dChange(|Selected|
|00005290| 4c 69 6e 65 28 6c 68 29 | 2c 20 65 6e 74 72 79 2c |Line(lh)|, entry,|
|000052a0| 20 65 6e 74 72 69 65 73 | 2c 20 6c 68 29 3b 09 09 | entries|, lh);..|
|000052b0| 09 28 2a 20 73 65 6c 65 | 63 74 69 6f 6e 20 6d 61 |.(* sele|ction ma|
|000052c0| 79 20 68 61 76 65 20 62 | 65 65 6e 20 63 68 61 6e |y have b|een chan|
|000052d0| 67 65 64 20 62 79 20 4c | 43 6c 69 63 6b 20 2a 29 |ged by L|Click *)|
|000052e0| 0d 09 09 09 09 09 65 6e | 64 3b 20 28 2a 20 69 66 |......en|d; (* if|
|000052f0| 20 2a 29 0d 09 09 09 09 | 65 6e 64 3b 20 28 2a 20 | *).....|end; (* |
|00005300| 69 66 20 2a 29 0d 09 09 | 09 65 6e 64 3b 0d 09 09 |if *)...|.end;...|
|00005310| 09 64 69 74 53 6f 72 74 | 45 78 74 65 6e 73 69 6f |.ditSort|Extensio|
|00005320| 6e 2c 20 64 69 74 53 6f | 72 74 41 70 70 6c 69 63 |n, ditSo|rtApplic|
|00005330| 61 74 69 6f 6e 2c 20 64 | 69 74 53 6f 72 74 4e 61 |ation, d|itSortNa|
|00005340| 6d 65 3a 62 65 67 69 6e | 0d 09 09 09 09 44 6f 53 |me:begin|.....DoS|
|00005350| 6f 72 74 28 77 74 2c 20 | 69 74 65 6d 29 3b 0d 09 |ort(wt, |item);..|
|00005360| 09 09 65 6e 64 3b 0d 09 | 09 09 64 69 74 44 65 66 |..end;..|..ditDef|
|00005370| 61 75 6c 74 73 3a 62 65 | 67 69 6e 0d 09 09 09 09 |aults:be|gin.....|
|00005380| 44 6f 53 65 74 44 65 66 | 61 75 6c 74 73 28 77 74 |DoSetDef|aults(wt|
|00005390| 29 3b 0d 09 09 09 65 6e | 64 3b 0d 09 09 65 6e 64 |);....en|d;...end|
|000053a0| 3b 20 28 2a 20 63 61 73 | 65 20 2a 29 0d 09 09 69 |; (* cas|e *)...i|
|000053b0| 66 20 65 72 72 20 3d 20 | 6e 6f 45 72 72 20 74 68 |f err = |noErr th|
|000053c0| 65 6e 20 62 65 67 69 6e | 0d 09 09 09 44 69 72 74 |en begin|....Dirt|
|000053d0| 79 44 6f 63 75 6d 65 6e | 74 3b 0d 09 09 65 6e 64 |yDocumen|t;...end|
|000053e0| 3b 20 28 2a 20 69 66 20 | 2a 29 0d 09 09 69 66 20 |; (* if |*)...if |
|000053f0| 65 72 72 20 3d 20 31 20 | 74 68 65 6e 20 62 65 67 |err = 1 |then beg|
|00005400| 69 6e 0d 09 09 09 65 72 | 72 20 3a 3d 20 6e 6f 45 |in....er|r := noE|
|00005410| 72 72 3b 0d 09 09 65 6e | 64 3b 20 28 2a 20 69 66 |rr;...en|d; (* if|
|00005420| 20 2a 29 0d 09 09 44 69 | 6d 42 75 74 74 6f 6e 73 | *)...Di|mButtons|
|00005430| 28 77 74 29 3b 0d 09 09 | 57 68 61 74 43 6c 69 63 |(wt);...|WhatClic|
|00005440| 6b 46 69 6c 65 4d 61 70 | 20 3a 3d 20 65 72 72 3b |kFileMap| := err;|
|00005450| 0d 09 65 6e 64 3b 20 28 | 2a 20 57 68 61 74 43 6c |..end; (|* WhatCl|
|00005460| 69 63 6b 46 69 6c 65 4d | 61 70 20 2a 29 0d 0d 09 |ickFileM|ap *)...|
|00005470| 66 75 6e 63 74 69 6f 6e | 20 57 68 61 74 46 6c 75 |function| WhatFlu|
|00005480| 73 68 46 69 6c 65 4d 61 | 70 20 28 77 74 3a 20 57 |shFileMa|p (wt: W|
|00005490| 69 6e 64 6f 77 54 79 70 | 65 3b 20 69 74 65 6d 3a |indowTyp|e; item:|
|000054a0| 20 69 6e 74 65 67 65 72 | 29 3a 20 4f 53 45 72 72 | integer|): OSErr|
|000054b0| 3b 0d 09 09 76 61 72 0d | 09 09 09 65 72 72 3a 20 |;...var.|...err: |
|000054c0| 4f 53 45 72 72 3b 0d 09 | 62 65 67 69 6e 0d 09 09 |OSErr;..|begin...|
|000054d0| 69 66 20 49 73 4c 6f 63 | 6b 65 64 28 77 74 2c 20 |if IsLoc|ked(wt, |
|000054e0| 69 74 65 6d 29 20 74 68 | 65 6e 20 62 65 67 69 6e |item) th|en begin|
|000054f0| 0d 09 09 09 65 72 72 20 | 3a 3d 20 6e 6f 45 72 72 |....err |:= noErr|
|00005500| 3b 0d 09 09 65 6e 64 20 | 65 6c 73 65 20 62 65 67 |;...end |else beg|
|00005510| 69 6e 0d 09 09 09 65 72 | 72 20 3a 3d 20 49 43 4d |in....er|r := ICM|
|00005520| 61 70 45 72 72 28 49 43 | 53 65 74 50 72 65 66 48 |apErr(IC|SetPrefH|
|00005530| 61 6e 64 6c 65 28 47 65 | 74 49 6e 73 74 61 6e 63 |andle(Ge|tInstanc|
|00005540| 65 2c 20 77 69 6e 64 6f | 77 69 6e 66 6f 5b 77 74 |e, windo|winfo[wt|
|00005550| 5d 2e 69 74 65 6d 73 5b | 69 74 65 6d 5d 5e 2e 6b |].items[|item]^.k|
|00005560| 65 79 2c 20 49 43 61 74 | 74 72 5f 6e 6f 5f 63 68 |ey, ICat|tr_no_ch|
|00005570| 61 6e 67 65 2c 20 48 61 | 6e 64 6c 65 28 77 69 6e |ange, Ha|ndle(win|
|00005580| 64 6f 77 69 6e 66 6f 5b | 77 74 5d 2e 69 74 65 6d |dowinfo[|wt].item|
|00005590| 73 5b 69 74 65 6d 5d 5e | 2e 64 61 74 61 29 29 29 |s[item]^|.data)))|
|000055a0| 3b 0d 09 09 65 6e 64 3b | 0d 09 09 57 68 61 74 46 |;...end;|...WhatF|
|000055b0| 6c 75 73 68 46 69 6c 65 | 4d 61 70 20 3a 3d 20 65 |lushFile|Map := e|
|000055c0| 72 72 3b 0d 09 65 6e 64 | 3b 20 28 2a 20 57 68 61 |rr;..end|; (* Wha|
|000055d0| 74 46 6c 75 73 68 46 69 | 6c 65 4d 61 70 20 2a 29 |tFlushFi|leMap *)|
|000055e0| 0d 0d 09 66 75 6e 63 74 | 69 6f 6e 20 57 68 61 74 |...funct|ion What|
|000055f0| 43 6c 6f 73 65 46 69 6c | 65 4d 61 70 20 28 77 74 |CloseFil|eMap (wt|
|00005600| 3a 20 57 69 6e 64 6f 77 | 54 79 70 65 3b 20 69 74 |: Window|Type; it|
|00005610| 65 6d 3a 20 69 6e 74 65 | 67 65 72 29 3a 20 4f 53 |em: inte|ger): OS|
|00005620| 45 72 72 3b 0d 09 62 65 | 67 69 6e 0d 09 09 4c 44 |Err;..be|gin...LD|
|00005630| 69 73 70 6f 73 65 28 4c | 69 73 74 48 61 6e 64 6c |ispose(L|istHandl|
|00005640| 65 28 77 69 6e 64 6f 77 | 69 6e 66 6f 5b 77 74 5d |e(window|info[wt]|
|00005650| 2e 69 74 65 6d 73 5b 69 | 74 65 6d 5d 5e 2e 73 70 |.items[i|tem]^.sp|
|00005660| 61 72 65 5f 64 61 74 61 | 29 29 3b 0d 09 09 44 69 |are_data|));...Di|
|00005670| 73 70 6f 73 65 48 61 6e | 64 6c 65 28 48 61 6e 64 |sposeHan|dle(Hand|
|00005680| 6c 65 28 77 69 6e 64 6f | 77 69 6e 66 6f 5b 77 74 |le(windo|winfo[wt|
|00005690| 5d 2e 69 74 65 6d 73 5b | 69 74 65 6d 5d 5e 2e 64 |].items[|item]^.d|
|000056a0| 61 74 61 29 29 3b 0d 09 | 09 57 68 61 74 43 6c 6f |ata));..|.WhatClo|
|000056b0| 73 65 46 69 6c 65 4d 61 | 70 20 3a 3d 20 6e 6f 45 |seFileMa|p := noE|
|000056c0| 72 72 3b 0d 09 65 6e 64 | 3b 20 28 2a 20 57 68 61 |rr;..end|; (* Wha|
|000056d0| 74 43 6c 6f 73 65 46 69 | 6c 65 4d 61 70 20 2a 29 |tCloseFi|leMap *)|
|000056e0| 0d 0d 09 66 75 6e 63 74 | 69 6f 6e 20 57 68 61 74 |...funct|ion What|
|000056f0| 41 63 74 69 76 61 74 65 | 46 69 6c 65 4d 61 70 20 |Activate|FileMap |
|00005700| 28 77 74 3a 20 57 69 6e | 64 6f 77 54 79 70 65 3b |(wt: Win|dowType;|
|00005710| 20 69 74 65 6d 3a 20 69 | 6e 74 65 67 65 72 3b 20 | item: i|nteger; |
|00005720| 61 63 74 69 76 61 74 65 | 3a 20 62 6f 6f 6c 65 61 |activate|: boolea|
|00005730| 6e 29 3a 20 4f 53 45 72 | 72 3b 0d 09 62 65 67 69 |n): OSEr|r;..begi|
|00005740| 6e 0d 09 09 4c 41 63 74 | 69 76 61 74 65 28 61 63 |n...LAct|ivate(ac|
|00005750| 74 69 76 61 74 65 2c 20 | 4c 69 73 74 48 61 6e 64 |tivate, |ListHand|
|00005760| 6c 65 28 77 69 6e 64 6f | 77 69 6e 66 6f 5b 77 74 |le(windo|winfo[wt|
|00005770| 5d 2e 69 74 65 6d 73 5b | 69 74 65 6d 5d 5e 2e 73 |].items[|item]^.s|
|00005780| 70 61 72 65 5f 64 61 74 | 61 29 29 3b 0d 09 09 57 |pare_dat|a));...W|
|00005790| 68 61 74 41 63 74 69 76 | 61 74 65 46 69 6c 65 4d |hatActiv|ateFileM|
|000057a0| 61 70 20 3a 3d 20 6e 6f | 45 72 72 3b 0d 09 65 6e |ap := no|Err;..en|
|000057b0| 64 3b 20 28 2a 20 57 68 | 61 74 41 63 74 69 76 61 |d; (* Wh|atActiva|
|000057c0| 74 65 46 69 6c 65 4d 61 | 70 20 2a 29 0d 0d 09 66 |teFileMa|p *)...f|
|000057d0| 75 6e 63 74 69 6f 6e 20 | 47 65 74 45 6e 74 72 79 |unction |GetEntry|
|000057e0| 4e 61 6d 65 20 28 6c 69 | 73 74 3a 20 4c 69 73 74 |Name (li|st: List|
|000057f0| 48 61 6e 64 6c 65 3b 20 | 63 3a 20 63 65 6c 6c 29 |Handle; |c: cell)|
|00005800| 3a 20 73 74 72 32 35 35 | 3b 0d 09 09 76 61 72 0d |: str255|;...var.|
|00005810| 09 09 09 65 6e 74 72 79 | 3a 20 49 43 4d 61 70 45 |...entry|: ICMapE|
|00005820| 6e 74 72 79 3b 0d 09 09 | 09 65 72 72 3a 20 4f 53 |ntry;...|.err: OS|
|00005830| 45 72 72 3b 0d 09 09 09 | 6a 75 6e 6b 70 6f 73 3a |Err;....|junkpos:|
|00005840| 20 6c 6f 6e 67 69 6e 74 | 3b 0d 09 09 09 65 6e 74 | longint|;....ent|
|00005850| 72 69 65 73 3a 20 68 61 | 6e 64 6c 65 3b 0d 09 62 |ries: ha|ndle;..b|
|00005860| 65 67 69 6e 0d 09 09 47 | 65 74 45 6e 74 72 79 4e |egin...G|etEntryN|
|00005870| 61 6d 65 20 3a 3d 20 27 | 27 3b 0d 09 09 65 6e 74 |ame := '|';...ent|
|00005880| 72 69 65 73 20 3a 3d 20 | 48 61 6e 64 6c 65 28 77 |ries := |Handle(w|
|00005890| 69 6e 64 6f 77 69 6e 66 | 6f 5b 47 65 74 57 69 6e |indowinf|o[GetWin|
|000058a0| 64 6f 77 54 79 70 65 28 | 6c 69 73 74 5e 5e 2e 70 |dowType(|list^^.p|
|000058b0| 6f 72 74 29 5d 2e 69 74 | 65 6d 73 5b 64 69 74 4c |ort)].it|ems[ditL|
|000058c0| 69 73 74 5d 5e 2e 64 61 | 74 61 29 3b 0d 09 09 65 |ist]^.da|ta);...e|
|000058d0| 72 72 20 3a 3d 20 49 43 | 4d 61 70 45 72 72 28 49 |rr := IC|MapErr(I|
|000058e0| 43 47 65 74 49 6e 64 4d | 61 70 45 6e 74 72 79 28 |CGetIndM|apEntry(|
|000058f0| 47 65 74 49 6e 73 74 61 | 6e 63 65 2c 20 65 6e 74 |GetInsta|nce, ent|
|00005900| 72 69 65 73 2c 20 63 2e | 76 20 2b 20 31 2c 20 6a |ries, c.|v + 1, j|
|00005910| 75 6e 6b 70 6f 73 2c 20 | 65 6e 74 72 79 29 29 3b |unkpos, |entry));|
|00005920| 0d 09 09 69 66 20 65 72 | 72 20 3d 20 6e 6f 45 72 |...if er|r = noEr|
|00005930| 72 20 74 68 65 6e 20 62 | 65 67 69 6e 0d 09 09 09 |r then b|egin....|
|00005940| 47 65 74 45 6e 74 72 79 | 4e 61 6d 65 20 3a 3d 20 |GetEntry|Name := |
|00005950| 65 6e 74 72 79 2e 65 78 | 74 65 6e 73 69 6f 6e 3b |entry.ex|tension;|
|00005960| 0d 09 09 65 6e 64 3b 0d | 09 65 6e 64 3b 0d 0d 09 |...end;.|.end;...|
|00005970| 66 75 6e 63 74 69 6f 6e | 20 57 68 61 74 4b 65 79 |function| WhatKey|
|00005980| 46 69 6c 65 4d 61 70 20 | 28 77 74 3a 20 57 69 6e |FileMap |(wt: Win|
|00005990| 64 6f 77 54 79 70 65 3b | 20 69 74 65 6d 3a 20 69 |dowType;| item: i|
|000059a0| 6e 74 65 67 65 72 3b 20 | 65 72 3a 20 45 76 65 6e |nteger; |er: Even|
|000059b0| 74 52 65 63 6f 72 64 29 | 3a 20 4f 53 45 72 72 3b |tRecord)|: OSErr;|
|000059c0| 0d 09 09 76 61 72 0d 09 | 09 09 63 68 3a 20 69 6e |...var..|..ch: in|
|000059d0| 74 65 67 65 72 3b 0d 09 | 09 09 65 6e 74 72 79 3a |teger;..|..entry:|
|000059e0| 20 49 43 4d 61 70 45 6e | 74 72 79 3b 0d 09 09 09 | ICMapEn|try;....|
|000059f0| 6c 68 3a 20 4c 69 73 74 | 48 61 6e 64 6c 65 3b 0d |lh: List|Handle;.|
|00005a00| 09 09 09 65 72 72 3a 20 | 4f 53 45 72 72 3b 0d 09 |...err: |OSErr;..|
|00005a10| 62 65 67 69 6e 0d 09 09 | 69 74 65 6d 20 3a 3d 20 |begin...|item := |
|00005a20| 69 74 65 6d 3b 20 7b 20 | 55 6e 75 73 65 64 20 7d |item; { |Unused }|
|00005a30| 0d 09 09 6c 68 20 3a 3d | 20 4c 69 73 74 48 61 6e |...lh :=| ListHan|
|00005a40| 64 6c 65 28 77 69 6e 64 | 6f 77 69 6e 66 6f 5b 77 |dle(wind|owinfo[w|
|00005a50| 74 5d 2e 69 74 65 6d 73 | 5b 64 69 74 4c 69 73 74 |t].items|[ditList|
|00005a60| 5d 5e 2e 73 70 61 72 65 | 5f 64 61 74 61 29 3b 0d |]^.spare|_data);.|
|00005a70| 09 09 65 72 72 20 3a 3d | 20 6e 6f 45 72 72 3b 0d |..err :=| noErr;.|
|00005a80| 09 09 69 66 20 28 65 72 | 2e 77 68 61 74 20 3d 20 |..if (er|.what = |
|00005a90| 6b 65 79 44 6f 77 6e 29 | 20 6f 72 20 28 65 72 2e |keyDown)| or (er.|
|00005aa0| 77 68 61 74 20 3d 20 61 | 75 74 6f 4b 65 79 29 20 |what = a|utoKey) |
|00005ab0| 74 68 65 6e 20 62 65 67 | 69 6e 0d 09 09 09 63 68 |then beg|in....ch|
|00005ac0| 20 3a 3d 20 42 41 4e 44 | 28 65 72 2e 6d 65 73 73 | := BAND|(er.mess|
|00005ad0| 61 67 65 2c 20 24 46 46 | 29 3b 0d 09 09 09 63 61 |age, $FF|);....ca|
|00005ae0| 73 65 20 63 68 20 6f 66 | 0d 09 09 09 09 63 72 43 |se ch of|.....crC|
|00005af0| 68 61 72 2c 20 65 6e 74 | 65 72 43 68 61 72 3a 20 |har, ent|erChar: |
|00005b00| 20 62 65 67 69 6e 0d 09 | 09 09 09 09 69 66 20 47 | begin..|....if G|
|00005b10| 65 74 44 43 74 6c 45 6e | 61 62 6c 65 28 77 69 6e |etDCtlEn|able(win|
|00005b20| 64 6f 77 69 6e 66 6f 5b | 77 74 5d 2e 77 69 6e 64 |dowinfo[|wt].wind|
|00005b30| 6f 77 2c 20 64 69 74 43 | 68 61 6e 67 65 29 20 74 |ow, ditC|hange) t|
|00005b40| 68 65 6e 20 62 65 67 69 | 6e 0d 09 09 09 09 09 09 |hen begi|n.......|
|00005b50| 46 6c 61 73 68 49 74 65 | 6d 28 77 69 6e 64 6f 77 |FlashIte|m(window|
|00005b60| 69 6e 66 6f 5b 77 74 5d | 2e 77 69 6e 64 6f 77 2c |info[wt]|.window,|
|00005b70| 20 64 69 74 43 68 61 6e | 67 65 29 3b 0d 09 09 09 | ditChan|ge);....|
|00005b80| 09 09 09 65 72 72 20 3a | 3d 20 44 6f 41 64 64 43 |...err :|= DoAddC|
|00005b90| 68 61 6e 67 65 28 53 65 | 6c 65 63 74 65 64 4c 69 |hange(Se|lectedLi|
|00005ba0| 6e 65 28 6c 68 29 2c 20 | 65 6e 74 72 79 2c 20 48 |ne(lh), |entry, H|
|00005bb0| 61 6e 64 6c 65 28 77 69 | 6e 64 6f 77 69 6e 66 6f |andle(wi|ndowinfo|
|00005bc0| 5b 77 74 5d 2e 69 74 65 | 6d 73 5b 64 69 74 4c 69 |[wt].ite|ms[ditLi|
|00005bd0| 73 74 5d 5e 2e 64 61 74 | 61 29 2c 20 6c 68 29 3b |st]^.dat|a), lh);|
|00005be0| 0d 09 09 09 09 09 09 69 | 66 20 65 72 72 20 3d 20 |.......i|f err = |
|00005bf0| 6e 6f 45 72 72 20 74 68 | 65 6e 20 62 65 67 69 6e |noErr th|en begin|
|00005c00| 0d 09 09 09 09 09 09 09 | 44 69 72 74 79 44 6f 63 |........|DirtyDoc|
|00005c10| 75 6d 65 6e 74 3b 0d 09 | 09 09 09 09 09 65 6e 64 |ument;..|.....end|
|00005c20| 3b 0d 09 09 09 09 09 65 | 6e 64 3b 20 28 2a 20 69 |;......e|nd; (* i|
|00005c30| 66 20 2a 29 0d 09 09 09 | 09 65 6e 64 3b 0d 09 09 |f *)....|.end;...|
|00005c40| 09 09 6f 74 68 65 72 77 | 69 73 65 20 62 65 67 69 |..otherw|ise begi|
|00005c50| 6e 0d 09 09 09 09 09 44 | 6f 4c 69 73 74 4b 65 79 |n......D|oListKey|
|00005c60| 28 6c 68 2c 20 65 72 2c | 20 47 65 74 45 6e 74 72 |(lh, er,| GetEntr|
|00005c70| 79 4e 61 6d 65 29 3b 0d | 09 09 09 09 09 44 69 6d |yName);.|.....Dim|
|00005c80| 42 75 74 74 6f 6e 73 28 | 77 74 29 3b 0d 09 09 09 |Buttons(|wt);....|
|00005c90| 09 65 6e 64 3b 0d 09 09 | 09 65 6e 64 3b 0d 09 09 |.end;...|.end;...|
|00005ca0| 65 6e 64 3b 0d 09 09 57 | 68 61 74 4b 65 79 46 69 |end;...W|hatKeyFi|
|00005cb0| 6c 65 4d 61 70 20 3a 3d | 20 65 72 72 3b 0d 09 65 |leMap :=| err;..e|
|00005cc0| 6e 64 3b 20 28 2a 20 57 | 68 61 74 4b 65 79 46 69 |nd; (* W|hatKeyFi|
|00005cd0| 6c 65 4d 61 70 20 2a 29 | 0d 0d 09 66 75 6e 63 74 |leMap *)|...funct|
|00005ce0| 69 6f 6e 20 57 68 61 74 | 43 75 72 73 6f 72 46 69 |ion What|CursorFi|
|00005cf0| 6c 65 4d 61 70 20 28 77 | 74 3a 20 57 69 6e 64 6f |leMap (w|t: Windo|
|00005d00| 77 54 79 70 65 3b 20 69 | 74 65 6d 3a 20 69 6e 74 |wType; i|tem: int|
|00005d10| 65 67 65 72 3b 20 70 74 | 3a 20 50 6f 69 6e 74 3b |eger; pt|: Point;|
|00005d20| 20 63 75 72 73 6f 72 69 | 64 3a 20 69 6e 74 65 67 | cursori|d: integ|
|00005d30| 65 72 29 3a 20 4f 53 45 | 72 72 3b 0d 09 09 76 61 |er): OSE|rr;...va|
|00005d40| 72 0d 09 09 09 72 3a 20 | 52 65 63 74 3b 0d 09 62 |r....r: |Rect;..b|
|00005d50| 65 67 69 6e 0d 09 09 47 | 65 74 44 49 74 65 6d 52 |egin...G|etDItemR|
|00005d60| 65 63 74 28 77 69 6e 64 | 6f 77 69 6e 66 6f 5b 77 |ect(wind|owinfo[w|
|00005d70| 74 5d 2e 77 69 6e 64 6f | 77 2c 20 69 74 65 6d 2c |t].windo|w, item,|
|00005d80| 20 72 29 3b 0d 09 09 49 | 6e 73 65 74 52 65 63 74 | r);...I|nsetRect|
|00005d90| 28 72 2c 20 31 35 2c 20 | 30 29 3b 0d 09 09 69 66 |(r, 15, |0);...if|
|00005da0| 20 50 74 49 6e 52 65 63 | 74 28 70 74 2c 20 72 29 | PtInRec|t(pt, r)|
|00005db0| 20 74 68 65 6e 20 62 65 | 67 69 6e 0d 09 09 09 53 | then be|gin....S|
|00005dc0| 65 74 43 75 72 73 6f 72 | 28 47 65 74 43 75 72 73 |etCursor|(GetCurs|
|00005dd0| 6f 72 28 63 75 72 73 6f | 72 69 64 29 5e 5e 29 3b |or(curso|rid)^^);|
|00005de0| 0d 09 09 65 6e 64 20 65 | 6c 73 65 20 62 65 67 69 |...end e|lse begi|
|00005df0| 6e 0d 09 09 09 49 6e 69 | 74 43 75 72 73 6f 72 3b |n....Ini|tCursor;|
|00005e00| 0d 09 09 65 6e 64 3b 20 | 28 2a 20 69 66 20 2a 29 |...end; |(* if *)|
|00005e10| 0d 09 09 57 68 61 74 43 | 75 72 73 6f 72 46 69 6c |...WhatC|ursorFil|
|00005e20| 65 4d 61 70 20 3a 3d 20 | 6e 6f 45 72 72 3b 0d 09 |eMap := |noErr;..|
|00005e30| 65 6e 64 3b 20 28 2a 20 | 57 68 61 74 43 75 72 73 |end; (* |WhatCurs|
|00005e40| 6f 72 46 69 6c 65 4d 61 | 70 20 2a 29 0d 0d 09 70 |orFileMa|p *)...p|
|00005e50| 72 6f 63 65 64 75 72 65 | 20 4d 61 70 70 69 6e 67 |rocedure| Mapping|
|00005e60| 53 65 74 53 65 6c 65 63 | 74 69 6f 6e 28 6b 65 79 |SetSelec|tion(key|
|00005e70| 3a 53 74 72 32 35 35 29 | 3b 0d 09 09 76 61 72 0d |:Str255)|;...var.|
|00005e80| 09 09 09 65 72 72 3a 4f | 53 53 74 61 74 75 73 3b |...err:O|SStatus;|
|00005e90| 0d 09 09 09 77 69 6e 64 | 6f 77 3a 57 69 6e 64 6f |....wind|ow:Windo|
|00005ea0| 77 50 74 72 3b 0d 09 09 | 09 63 6f 75 6e 74 2c 20 |wPtr;...|.count, |
|00005eb0| 69 2c 20 70 6f 73 3a 6c | 6f 6e 67 49 6e 74 3b 0d |i, pos:l|ongInt;.|
|00005ec0| 09 09 09 65 6e 74 72 69 | 65 73 3a 48 61 6e 64 6c |...entri|es:Handl|
|00005ed0| 65 3b 0d 09 09 09 65 6e | 74 72 79 3a 20 49 43 4d |e;....en|try: ICM|
|00005ee0| 61 70 45 6e 74 72 79 3b | 0d 09 09 09 6c 69 73 74 |apEntry;|....list|
|00005ef0| 3a 4c 69 73 74 48 61 6e | 64 6c 65 3b 0d 09 62 65 |:ListHan|dle;..be|
|00005f00| 67 69 6e 0d 09 09 77 69 | 6e 64 6f 77 20 3a 3d 20 |gin...wi|ndow := |
|00005f10| 47 65 74 57 69 6e 64 6f | 77 50 74 72 28 57 54 5f |GetWindo|wPtr(WT_|
|00005f20| 46 69 6c 65 4d 61 70 70 | 69 6e 67 29 3b 0d 09 09 |FileMapp|ing);...|
|00005f30| 69 66 20 77 69 6e 64 6f | 77 20 3c 3e 20 6e 69 6c |if windo|w <> nil|
|00005f40| 20 74 68 65 6e 20 62 65 | 67 69 6e 0d 09 09 09 65 | then be|gin....e|
|00005f50| 6e 74 72 69 65 73 20 3a | 3d 20 48 61 6e 64 6c 65 |ntries :|= Handle|
|00005f60| 28 77 69 6e 64 6f 77 69 | 6e 66 6f 5b 57 54 5f 46 |(windowi|nfo[WT_F|
|00005f70| 69 6c 65 4d 61 70 70 69 | 6e 67 5d 2e 69 74 65 6d |ileMappi|ng].item|
|00005f80| 73 5b 64 69 74 4c 69 73 | 74 5d 5e 2e 64 61 74 61 |s[ditLis|t]^.data|
|00005f90| 29 3b 0d 09 09 09 6c 69 | 73 74 20 3a 3d 20 4c 69 |);....li|st := Li|
|00005fa0| 73 74 48 61 6e 64 6c 65 | 28 77 69 6e 64 6f 77 69 |stHandle|(windowi|
|00005fb0| 6e 66 6f 5b 57 54 5f 46 | 69 6c 65 4d 61 70 70 69 |nfo[WT_F|ileMappi|
|00005fc0| 6e 67 5d 2e 69 74 65 6d | 73 5b 64 69 74 4c 69 73 |ng].item|s[ditLis|
|00005fd0| 74 5d 5e 2e 73 70 61 72 | 65 5f 64 61 74 61 29 3b |t]^.spar|e_data);|
|00005fe0| 0d 09 09 09 65 72 72 20 | 3a 3d 20 49 43 43 6f 75 |....err |:= ICCou|
|00005ff0| 6e 74 4d 61 70 45 6e 74 | 72 69 65 73 28 47 65 74 |ntMapEnt|ries(Get|
|00006000| 49 6e 73 74 61 6e 63 65 | 2c 20 65 6e 74 72 69 65 |Instance|, entrie|
|00006010| 73 2c 20 63 6f 75 6e 74 | 29 3b 0d 09 09 09 69 66 |s, count|);....if|
|00006020| 20 65 72 72 20 3d 20 6e | 6f 45 72 72 20 74 68 65 | err = n|oErr the|
|00006030| 6e 20 62 65 67 69 6e 0d | 09 09 09 09 70 6f 73 20 |n begin.|....pos |
|00006040| 3a 3d 20 30 3b 0d 09 09 | 09 09 66 6f 72 20 69 3a |:= 0;...|..for i:|
|00006050| 3d 20 31 20 74 6f 20 63 | 6f 75 6e 74 20 64 6f 20 |= 1 to c|ount do |
|00006060| 62 65 67 69 6e 0d 09 09 | 09 09 09 65 72 72 20 3a |begin...|...err :|
|00006070| 3d 20 49 43 47 65 74 4d | 61 70 45 6e 74 72 79 28 |= ICGetM|apEntry(|
|00006080| 47 65 74 49 6e 73 74 61 | 6e 63 65 2c 20 65 6e 74 |GetInsta|nce, ent|
|00006090| 72 69 65 73 2c 20 70 6f | 73 2c 20 65 6e 74 72 79 |ries, po|s, entry|
|000060a0| 29 3b 0d 09 09 09 09 09 | 69 66 20 65 72 72 20 3c |);......|if err <|
|000060b0| 3e 20 6e 6f 45 72 72 20 | 74 68 65 6e 20 62 65 67 |> noErr |then beg|
|000060c0| 69 6e 0d 09 09 09 09 09 | 09 6c 65 61 76 65 3b 0d |in......|.leave;.|
|000060d0| 09 09 09 09 09 65 6e 64 | 3b 0d 09 09 09 09 09 70 |.....end|;......p|
|000060e0| 6f 73 20 3a 3d 20 70 6f | 73 20 2b 20 65 6e 74 72 |os := po|s + entr|
|000060f0| 79 2e 74 6f 74 61 6c 5f | 6c 65 6e 67 74 68 3b 0d |y.total_|length;.|
|00006100| 09 09 09 09 09 69 66 20 | 49 55 45 71 75 61 6c 53 |.....if |IUEqualS|
|00006110| 74 72 69 6e 67 28 65 6e | 74 72 79 2e 65 78 74 65 |tring(en|try.exte|
|00006120| 6e 73 69 6f 6e 2c 20 6b | 65 79 29 20 3d 20 30 20 |nsion, k|ey) = 0 |
|00006130| 74 68 65 6e 20 62 65 67 | 69 6e 0d 09 09 09 09 09 |then beg|in......|
|00006140| 09 4c 53 65 74 53 69 6e | 67 6c 65 53 65 6c 65 63 |.LSetSin|gleSelec|
|00006150| 74 69 6f 6e 28 6c 69 73 | 74 2c 20 69 20 2d 20 31 |tion(lis|t, i - 1|
|00006160| 29 3b 0d 09 09 09 09 09 | 09 44 69 6d 42 75 74 74 |);......|.DimButt|
|00006170| 6f 6e 73 28 57 54 5f 46 | 69 6c 65 4d 61 70 70 69 |ons(WT_F|ileMappi|
|00006180| 6e 67 29 3b 0d 09 09 09 | 09 09 09 69 66 20 47 65 |ng);....|...if Ge|
|00006190| 74 44 43 74 6c 45 6e 61 | 62 6c 65 28 77 69 6e 64 |tDCtlEna|ble(wind|
|000061a0| 6f 77 2c 20 64 69 74 43 | 68 61 6e 67 65 29 20 74 |ow, ditC|hange) t|
|000061b0| 68 65 6e 20 62 65 67 69 | 6e 0d 09 09 09 09 09 09 |hen begi|n.......|
|000061c0| 09 65 72 72 20 3a 3d 20 | 44 6f 41 64 64 43 68 61 |.err := |DoAddCha|
|000061d0| 6e 67 65 28 69 20 2d 20 | 31 2c 20 65 6e 74 72 79 |nge(i - |1, entry|
|000061e0| 2c 20 65 6e 74 72 69 65 | 73 2c 20 6c 69 73 74 29 |, entrie|s, list)|
|000061f0| 3b 0d 09 09 09 09 09 09 | 65 6e 64 3b 0d 09 09 09 |;.......|end;....|
|00006200| 09 09 09 6c 65 61 76 65 | 3b 0d 09 09 09 09 09 65 |...leave|;......e|
|00006210| 6e 64 3b 0d 09 09 09 09 | 65 6e 64 3b 0d 09 09 09 |nd;.....|end;....|
|00006220| 65 6e 64 3b 0d 09 09 65 | 6e 64 3b 0d 09 65 6e 64 |end;...e|nd;..end|
|00006230| 3b 0d 09 0d 65 6e 64 2e | 20 28 2a 20 49 43 46 69 |;...end.| (* ICFi|
|00006240| 6c 65 4d 61 70 57 68 61 | 74 20 2a 29 0d 00 00 00 |leMapWha|t *)....|
|00006250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006280| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00006290| 4d 53 41 4d 47 65 74 43 | 6f 6e 74 65 6e 74 3d 31 |MSAMGetC|ontent=1|
|000062a0| 32 39 33 20 c4 4f 43 45 | 4d 61 69 6c 7c 0d 6b 4d |293 .OCE|Mail|.kM|
|000062b0| 0f 49 43 46 69 6c 65 4d | 61 70 57 68 61 74 2e 70 |.ICFileM|apWhat.p|
|000062c0| 02 00 00 00 54 45 58 54 | 43 57 49 45 00 00 00 34 |....TEXT|CWIE...4|
|000062d0| 00 00 54 45 58 54 43 57 | 49 45 00 00 00 34 01 00 |..TEXTCW|IE...4..|
|000062e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000062f0| 00 00 aa 8e 8c 46 00 00 | 61 cd 00 00 01 9a 65 6e |.....F..|a.....en|
|00006300| 74 73 3d 31 32 39 32 20 | c4 4f 43 45 4d 61 69 6c |ts=1292 |.OCEMail|
|00006310| 7c 0d 6b 4d 53 41 4d 4d | 61 72 6b 52 65 63 69 70 ||.kMSAMM|arkRecip|
|00006320| 69 65 6e 74 73 3d 31 32 | 38 35 20 c4 4f 43 45 4d |ients=12|85 .OCEM|
|00006330| 61 69 6c 7c 0d 6b 4d 53 | 41 4d 6e 4d 61 72 6b 52 |ail|.kMS|AMnMarkR|
|00006340| 65 63 69 70 69 65 6e 74 | 73 3d 31 32 39 38 20 c4 |ecipient|s=1298 .|
|00006350| 4f 43 45 4d 61 69 6c 7c | 0d 6b 4d 53 41 4d 4f 70 |OCEMail||.kMSAMOp|
|00006360| 65 6e 3d 31 32 38 38 20 | c4 4f 43 45 4d 61 69 6c |en=1288 |.OCEMail|
|00006370| 7c 0d 6b 4d 53 41 4d 4f | 70 65 6e 4e 65 73 74 65 ||.kMSAMO|penNeste|
|00006380| 00 00 00 48 00 09 47 65 | 6e 65 76 61 00 00 00 00 |...H..Ge|neva....|
|00006390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063a0| 00 00 00 00 00 00 00 03 | 00 02 00 3e 00 11 01 cb |........|...>....|
|000063b0| 02 70 00 3e 00 11 01 cb | 02 70 ae 16 a4 27 00 00 |.p.>....|.p...'..|
|000063c0| 20 f2 00 00 20 fe 00 00 | 1f dd 01 00 00 00 00 04 | ... ...|........|
|000063d0| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|000063e0| 00 00 00 46 00 5c be d4 | 13 78 00 00 00 1c 00 46 |...F.\..|.x.....F|
|000063f0| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.